]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly fix oc-1016 and fix downloading of files
authorBart Visscher <bartv@thisnet.nl>
Fri, 28 Sep 2012 15:03:00 +0000 (17:03 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 28 Sep 2012 19:18:20 +0000 (21:18 +0200)
apps/files/js/fileactions.js

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