diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-09-30 10:57:39 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-09-30 10:59:46 +0200 |
commit | 51e68729de3402fd7bc90e123c432538659b6b31 (patch) | |
tree | e98544cf1a703df28a3ad9e7a042fd6a160f7b08 /files/js | |
parent | 35d490f8e98063ab526e30f6382834895fdaca19 (diff) | |
download | nextcloud-server-51e68729de3402fd7bc90e123c432538659b6b31.tar.gz nextcloud-server-51e68729de3402fd7bc90e123c432538659b6b31.zip |
escape file and directory names when downloading files
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/fileactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js index ddb16ecd5fd..0089c235ebf 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -125,7 +125,7 @@ FileActions={ } FileActions.register('all','Download',function(){return OC.imagePath('core','actions/download')},function(filename){ - window.location='ajax/download.php?files='+filename+'&dir='+$('#dir').val(); + window.location='ajax/download.php?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val()); }); FileActions.register('all','Delete',function(){return OC.imagePath('core','actions/delete')},function(filename){ |