From a33dda3c65f5118ce78fdf510b9cf209d3c6f159 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Sat, 29 Sep 2012 18:10:19 +0200 Subject: [PATCH] Fix double url decoding in fileDownloadPath function --- core/js/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index 71aaedccc2..657dd6d6f8 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -37,7 +37,7 @@ t.cache={}; * @return string */ function fileDownloadPath(dir, file) { - return OC.filePath('files', 'ajax', 'download.php')+encodeURIComponent('?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir)); + return OC.filePath('files', 'ajax', 'download.php')+'&files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir); } var OC={