]> source.dussan.org Git - nextcloud-server.git/commitdiff
Files: Double encode download links. Fix for oc-1016.
authorThomas Tanghus <thomas@tanghus.net>
Fri, 15 Jun 2012 13:55:46 +0000 (15:55 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Fri, 15 Jun 2012 13:58:10 +0000 (15:58 +0200)
apps/files/js/fileactions.js

index deec640bc12427101de516d772f3f0e8321cb250..4dc05088eed7ae0d4eccf7d99576d92cb6d91f70 100644 (file)
@@ -141,7 +141,7 @@ $(document).ready(function(){
                var downloadScope = 'file';
        }
        FileActions.register(downloadScope,'Download',function(){return OC.imagePath('core','actions/download')},function(filename){
-               window.location=OC.filePath('files', 'ajax', 'download.php') + '?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val());
+               window.location=OC.filePath('files', 'ajax', 'download.php') + encodeURIComponent('?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val()));
        });
 });