summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2013-03-26 01:56:47 -0700
committerBjörn Schießle <bjoern@schiessle.org>2013-03-26 01:56:47 -0700
commitd121180d46009dec1464d73bb0f769b0b62a00d9 (patch)
tree31b30e2dca6ea09aa90436bac238228b63336744 /apps/files
parentd16dd1ad2aaeb322cd3b1f40dcf367de968cf701 (diff)
parentf971ce0b66ba32b1946df493ab5a937e4a778548 (diff)
downloadnextcloud-server-d121180d46009dec1464d73bb0f769b0b62a00d9.tar.gz
nextcloud-server-d121180d46009dec1464d73bb0f769b0b62a00d9.zip
Merge pull request #2270 from owncloud/fix_json_encoded_pubic_download
let public link download handle json encoded file lists [master]
Diffstat (limited to 'apps/files')
-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 a4ef41c2803..82069e3bc57 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -226,7 +226,7 @@ $(document).ready(function() {
OC.Notification.show(t('files','Your download is being prepared. This might take some time if the files are big.'));
// use special download URL if provided, e.g. for public shared files
if ( (downloadURL = document.getElementById("downloadURL")) ) {
- window.location=downloadURL.value+"&download&files="+files;
+ window.location=downloadURL.value+"&download&files="+encodeURIComponent(fileslist);
} else {
window.location=OC.filePath('files', 'ajax', 'download.php') + '?'+ $.param({ dir: dir, files: fileslist });
}