diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-14 19:09:11 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-14 20:21:31 -0400 |
commit | 5cf42b88aff43022324857c11b146c82b21cd597 (patch) | |
tree | 9a332a59e3c1294b73e953e85a996a7717441507 /apps/files_sharing | |
parent | 583dce5276fa626c2e463ccb0a81c81235aae7c5 (diff) | |
download | nextcloud-server-5cf42b88aff43022324857c11b146c82b21cd597.tar.gz nextcloud-server-5cf42b88aff43022324857c11b146c82b21cd597.zip |
Replace all %2F with a / in private link
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/share.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 5b0c4ee8096..dbf5588c4e3 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -181,7 +181,7 @@ OC.Share={ $('#privateLinkCheckbox').attr('checked', true); var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&token='+token; if (token.indexOf('&path=') == -1) { - link += '&file=' + encodeURIComponent(item).replace('%2F', '/'); + link += '&file=' + encodeURIComponent(item).replace(/%2F/g, '/'); } else { // Disable checkbox if inside a shared parent folder $('#privateLinkCheckbox').attr('disabled', 'true'); |