Urlencode the share URL

Fixes #63
This commit is contained in:
Lukas Reschke 2012-10-23 17:55:49 +02:00
parent e1a4fe9890
commit b1150f6a7f
1 changed files with 1 additions and 1 deletions

View File

@ -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();