Files: Double encode download links. Fix for oc-1016.

This commit is contained in:
Thomas Tanghus 2012-06-15 15:55:46 +02:00
parent 2b228fba34
commit 8f6121ffa8
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ $(document).ready(function(){
var downloadScope = 'file'; var downloadScope = 'file';
} }
FileActions.register(downloadScope,'Download',function(){return OC.imagePath('core','actions/download')},function(filename){ 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()));
}); });
}); });