aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-15 15:55:46 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-15 15:57:04 +0200
commit8f6121ffa8dfd5ee85ba70569587e2b1878084cd (patch)
treec000ccc09175d9eef50b37c3464cb246d7a0f454 /apps/files
parent2b228fba3463722ad19ea6ccd150b96772508791 (diff)
downloadnextcloud-server-8f6121ffa8dfd5ee85ba70569587e2b1878084cd.tar.gz
nextcloud-server-8f6121ffa8dfd5ee85ba70569587e2b1878084cd.zip
Files: Double encode download links. Fix for oc-1016.
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index deec640bc12..4dc05088eed 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -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()));
});
});