From b1150f6a7fe32714eba4155e3bee4498eef446a0 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 23 Oct 2012 17:55:49 +0200 Subject: [PATCH] Urlencode the share URL Fixes #63 --- core/js/share.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/share.js b/core/js/share.js index 1bc8f55568..7d8799edf5 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();