summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-05-09 21:35:47 +0000
committerBrice Maron <brice@bmaron.net>2012-05-09 21:35:59 +0000
commitde6aa0f88c6a471c33ddabd3eaa4d7d53dfe4192 (patch)
tree5c05dca0fa773e8b3218bc5bd5420977bdcddd22 /apps
parent98cd98e2e5a4fdf648ad4b517ecdaa1abdb8aa1d (diff)
downloadnextcloud-server-de6aa0f88c6a471c33ddabd3eaa4d7d53dfe4192.tar.gz
nextcloud-server-de6aa0f88c6a471c33ddabd3eaa4d7d53dfe4192.zip
Use a clean uri param constructor to get files
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 4b4e96b949e..918fcb62ee2 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -169,7 +169,7 @@ $(document).ready(function() {
var dir=$('#dir').val()||'/';
$('#notification').text(t('files','generating ZIP-file, it may take some time.'));
$('#notification').fadeIn();
- window.location=OC.filePath('files', 'ajax', 'download.php') + '?files='+encodeURIComponent(files)+'&dir='+encodeURIComponent(dir);
+ window.location=OC.filePath('files', 'ajax', 'download.php') + '?'+ $.param({ dir: dir, files: files });
return false;
});