summaryrefslogtreecommitdiffstats
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:55:49 +0200
commitb1150f6a7fe32714eba4155e3bee4498eef446a0 (patch)
treecff767ec8e1a9f1af0a522ba0cf05d83672f12a9
parente1a4fe98908dbf8f9e795fd852b231381d4f3ce4 (diff)
downloadnextcloud-server-b1150f6a7fe32714eba4155e3bee4498eef446a0.tar.gz
nextcloud-server-b1150f6a7fe32714eba4155e3bee4498eef446a0.zip
Urlencode the share URL
Fixes #63
-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 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();