Skip to content
Snippets Groups Projects
Commit 12983cf0 authored by Björn Schießle's avatar Björn Schießle
Browse files

urlencode file/dir to allow special characters in filename/path (issue #95)

parent 3e01fe1d
No related branches found
No related tags found
No related merge requests found
......@@ -70,9 +70,9 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
if (isset($linkItem['share_with'])) {
// Check password
if (isset($_GET['file'])) {
$url = OCP\Util::linkToPublic('files').'&file='.$_GET['file'];
$url = OCP\Util::linkToPublic('files').'&file='.urlencode($_GET['file']);
} else {
$url = OCP\Util::linkToPublic('files').'&dir='.$_GET['dir'];
$url = OCP\Util::linkToPublic('files').'&dir='.urlencode($_GET['dir']);
}
if (isset($_POST['password'])) {
$password = $_POST['password'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment