summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-29 18:10:19 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-29 18:10:23 +0200
commita33dda3c65f5118ce78fdf510b9cf209d3c6f159 (patch)
tree97768c00b1c70bd682027576db9db35db09f56b1 /core
parent424062f4af657715ca449b4451fa62529ba3ddb8 (diff)
downloadnextcloud-server-a33dda3c65f5118ce78fdf510b9cf209d3c6f159.tar.gz
nextcloud-server-a33dda3c65f5118ce78fdf510b9cf209d3c6f159.zip
Fix double url decoding in fileDownloadPath function
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 71aaedccc29..657dd6d6f8a 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={