summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-23 17:55:49 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-10-23 17:58:05 +0200
commite65c3ef9c9f4e29511d83d9520c7f9d05c2a9bf4 (patch)
tree45fdf27468b2a79aac916843c0f1604a84f8d2ae /core/js/share.js
parent552aee93fa7174f541d0d4e6ef7d736819f2fc70 (diff)
downloadnextcloud-server-e65c3ef9c9f4e29511d83d9520c7f9d05c2a9bf4.tar.gz
nextcloud-server-e65c3ef9c9f4e29511d83d9520c7f9d05c2a9bf4.zip
Urlencode the share URL
Fixes #63
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 7968edebb7a..2f9f10026de 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();