summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/share.js
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-11 20:58:21 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-11 20:58:21 -0400
commitb4e7c05959a1a3ebcc540f1d8ed30f04fe185819 (patch)
tree6663980da790faeaa7f23540523d5202819d45d1 /apps/files_sharing/js/share.js
parentfaebee5f25ba58a346f7bbf685ce535a5367f9d5 (diff)
downloadnextcloud-server-b4e7c05959a1a3ebcc540f1d8ed30f04fe185819.tar.gz
nextcloud-server-b4e7c05959a1a3ebcc540f1d8ed30f04fe185819.zip
Encoded slashes (%2F) don't look pretty in our private link urls
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r--apps/files_sharing/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 6f9468c4e79..5b0c4ee8096 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);
+ link += '&file=' + encodeURIComponent(item).replace('%2F', '/');
} else {
// Disable checkbox if inside a shared parent folder
$('#privateLinkCheckbox').attr('disabled', 'true');