Skip to content
Snippets Groups Projects
Commit 9c6d82d0 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

PDF Viewer: Double encode link.

parent 11184980
Branches
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment