summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-07 11:30:36 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-07 11:30:36 -0400
commite0a5f976e75739d02ec0483ed54bbcf31ce0c470 (patch)
tree736ffc51e9d9b21b797c644be9b99f85e23e5a51 /apps/files_sharing/ajax
parent71423ec566e77d28dd923b91aa311b600987a6ea (diff)
downloadnextcloud-server-e0a5f976e75739d02ec0483ed54bbcf31ce0c470.tar.gz
nextcloud-server-e0a5f976e75739d02ec0483ed54bbcf31ce0c470.zip
Fix bug oc-542, encode urls for private links
Diffstat (limited to 'apps/files_sharing/ajax')
-rwxr-xr-xapps/files_sharing/ajax/getitem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php
index 6eed0408238..36ac372cad4 100755
--- a/apps/files_sharing/ajax/getitem.php
+++ b/apps/files_sharing/ajax/getitem.php
@@ -19,7 +19,7 @@ while ($path != $userDirectory) {
$item['privateLink'] = $token;
} else {
// If in parent folder, include a path parameter to get direct access to file
- $item['privateLink'] = $token.'&path='.substr($source, strlen($path));
+ $item['privateLink'] = $token.'&path='.str_replace('%2F', '/', str_replace('+', '%20', urlencode(substr($source, strlen($path)))));;
}
} else {
// Check if uid_shared_with is a group