]> source.dussan.org Git - nextcloud-server.git/commitdiff
Urlencode the share URL
authorLukas Reschke <lukas@statuscode.ch>
Tue, 23 Oct 2012 15:55:49 +0000 (17:55 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 23 Oct 2012 15:55:49 +0000 (17:55 +0200)
Fixes #63

core/js/share.js

index 1bc8f55568018897f75d06a15bd9ca00c568415b..7d8799edf511edf4c73ee9723871879154b9dc35 100644 (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();