diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-03-13 11:15:17 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-03-13 11:15:17 +0100 |
commit | f971ce0b66ba32b1946df493ab5a937e4a778548 (patch) | |
tree | 3a83ed58256a7ccb7331163f504eb499640e50ac /apps/files | |
parent | f3a2daaa9d4fd574236b9168cdd6b0598d8578ce (diff) | |
download | nextcloud-server-f971ce0b66ba32b1946df493ab5a937e4a778548.tar.gz nextcloud-server-f971ce0b66ba32b1946df493ab5a937e4a778548.zip |
let public link download handle json encoded file lists
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/files.js | 2 |
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 }); } |