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

files_imageviewer: Double encode paths. Fixes oc-1016.

parent fc632b57
Branches
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ function viewImage(dir, file) {
if(file.indexOf('.psd')>0){//can't view those
return;
}
var location=OC.filePath('files','ajax','download.php')+'?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir);
var location=OC.filePath('files','ajax','download.php')+encodeURIComponent('?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir));
$.fancybox({
"href": location,
"title": file.replace(/</, "&lt;").replace(/>/, "&gt;"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment