diff options
author | Björn Schießle <bjoern@schiessle.org> | 2013-03-26 01:56:47 -0700 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2013-03-26 01:56:47 -0700 |
commit | d121180d46009dec1464d73bb0f769b0b62a00d9 (patch) | |
tree | 31b30e2dca6ea09aa90436bac238228b63336744 /apps/files/js | |
parent | d16dd1ad2aaeb322cd3b1f40dcf367de968cf701 (diff) | |
parent | f971ce0b66ba32b1946df493ab5a937e4a778548 (diff) | |
download | nextcloud-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/js')
-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 }); } |