diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-07 11:30:36 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-05-07 11:30:36 -0400 |
commit | e0a5f976e75739d02ec0483ed54bbcf31ce0c470 (patch) | |
tree | 736ffc51e9d9b21b797c644be9b99f85e23e5a51 /apps/files_sharing/js/share.js | |
parent | 71423ec566e77d28dd923b91aa311b600987a6ea (diff) | |
download | nextcloud-server-e0a5f976e75739d02ec0483ed54bbcf31ce0c470.tar.gz nextcloud-server-e0a5f976e75739d02ec0483ed54bbcf31ce0c470.zip |
Fix bug oc-542, encode urls for private links
Diffstat (limited to 'apps/files_sharing/js/share.js')
-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 f00db30e96d..e23146798f2 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -179,7 +179,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=' + item; + link += '&file=' + encodeURIComponent(item); } else { // Disable checkbox if inside a shared parent folder $('#privateLinkCheckbox').attr('disabled', 'true'); |