summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-16 19:48:33 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-16 19:49:57 +0200
commit33ab91710f920f42f18dd8489b04798d1460ce6e (patch)
tree68e614f38d26b50bdc7b3fe456a3c085188f09fb /apps
parent707660b35fcd721116d6a13316a51142066b24ec (diff)
downloadnextcloud-server-33ab91710f920f42f18dd8489b04798d1460ce6e.tar.gz
nextcloud-server-33ab91710f920f42f18dd8489b04798d1460ce6e.zip
PDF Viewer: Double encode link.
Diffstat (limited to 'apps')
-rw-r--r--apps/files_pdfviewer/js/viewer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_pdfviewer/js/viewer.js b/apps/files_pdfviewer/js/viewer.js
index 85bbf09362e..417d3a073f0 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();