]> source.dussan.org Git - nextcloud-server.git/commitdiff
PDF Viewer: Double encode link.
authorThomas Tanghus <thomas@tanghus.net>
Sat, 16 Jun 2012 17:48:33 +0000 (19:48 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Sat, 16 Jun 2012 17:48:33 +0000 (19:48 +0200)
apps/files_pdfviewer/js/viewer.js

index d98bedc5c09281138b91a6c6aa8c97a33ed26919..2c9cbb9b4311b282b62019545494c7acdf01a38e 100644 (file)
@@ -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();