PDF Viewer: Double encode link.
This commit is contained in:
parent
707660b35f
commit
33ab91710f
|
@ -13,7 +13,7 @@ function hidePDFviewer() {
|
||||||
function showPDFviewer(dir,filename){
|
function showPDFviewer(dir,filename){
|
||||||
if(!showPDFviewer.shown){
|
if(!showPDFviewer.shown){
|
||||||
$("#editor").hide();
|
$("#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();
|
$('table').hide();
|
||||||
function im(path) { return OC.filePath('files_pdfviewer','js','pdfjs/web/images/'+path); }
|
function im(path) { return OC.filePath('files_pdfviewer','js','pdfjs/web/images/'+path); }
|
||||||
showPDFviewer.oldcode = $("#controls").html();
|
showPDFviewer.oldcode = $("#controls").html();
|
||||||
|
|
Loading…
Reference in New Issue