diff options
author | Björn Schießle <bjoern@schiessle.org> | 2012-11-07 05:48:28 -0800 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2012-11-07 05:48:28 -0800 |
commit | 1910bff75ca65b8cfe992de98c2253f8285587bc (patch) | |
tree | db1d009fbaa8480e565f8b93f927acdfe42b815c | |
parent | 7b51a4e5f9058200917e3e3109cb24c4a1f9e6f2 (diff) | |
parent | 12983cf0b0bd2829d9b2af30871580d83f5798ce (diff) | |
download | nextcloud-server-1910bff75ca65b8cfe992de98c2253f8285587bc.tar.gz nextcloud-server-1910bff75ca65b8cfe992de98c2253f8285587bc.zip |
Merge pull request #303 from owncloud/fix_issue_95
urlencode file/dir to allow special characters in filename/path (issue #95)
-rw-r--r-- | apps/files_sharing/public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 295273d842b..598172aa855 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -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']; |