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

Merge pull request #303 from owncloud/fix_issue_95

urlencode file/dir to allow special characters in filename/path (issue #95)
parents 7b51a4e5 12983cf0
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