diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-23 17:55:49 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-23 17:55:49 +0200 |
commit | b1150f6a7fe32714eba4155e3bee4498eef446a0 (patch) | |
tree | cff767ec8e1a9f1af0a522ba0cf05d83672f12a9 | |
parent | e1a4fe98908dbf8f9e795fd852b231381d4f3ce4 (diff) | |
download | nextcloud-server-b1150f6a7fe32714eba4155e3bee4498eef446a0.tar.gz nextcloud-server-b1150f6a7fe32714eba4155e3bee4498eef446a0.zip |
Urlencode the share URL
Fixes #63
-rw-r--r-- | core/js/share.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index 1bc8f555680..7d8799edf51 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -313,7 +313,7 @@ OC.Share={ var file = $('#dir').val() + '/' + filename; } file = '/'+OC.currentUser+'/files'+file; - var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+type+'='+file; + var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+type+'='+encodeURIComponent(file); $('#linkText').val(link); $('#linkText').show('blind'); $('#showPassword').show(); |