diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-16 19:48:33 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-16 19:48:33 +0200 |
commit | 9c6d82d00d4280f1b87fe077abff0b4be1d9e07c (patch) | |
tree | 18302ab11c0cd4a80fa5f9520a7072e33e603713 /apps/files_pdfviewer | |
parent | 1118498050c3098e23bafe9e6dc78a465d913531 (diff) | |
download | nextcloud-server-9c6d82d00d4280f1b87fe077abff0b4be1d9e07c.tar.gz nextcloud-server-9c6d82d00d4280f1b87fe077abff0b4be1d9e07c.zip |
PDF Viewer: Double encode link.
Diffstat (limited to 'apps/files_pdfviewer')
-rw-r--r-- | apps/files_pdfviewer/js/viewer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_pdfviewer/js/viewer.js b/apps/files_pdfviewer/js/viewer.js index d98bedc5c09..2c9cbb9b431 100644 --- a/apps/files_pdfviewer/js/viewer.js +++ b/apps/files_pdfviewer/js/viewer.js @@ -13,7 +13,7 @@ function hidePDFviewer() { function showPDFviewer(dir,filename){ if(!showPDFviewer.shown){ $("#editor").hide(); - var url = OC.filePath('files','ajax','download.php')+'?files='+encodeURIComponent(filename)+"&dir="+encodeURIComponent(dir); + var url = OC.filePath('files','ajax','download.php')+encodeURIComponent('?files='+encodeURIComponent(filename)+"&dir="+encodeURIComponent(dir)); $('table').hide(); function im(path) { return OC.filePath('files_pdfviewer','js','pdfjs/web/images/'+path); } showPDFviewer.oldcode = $("#controls").html(); |