files_imageviewer: Double encode paths. Fixes oc-1016.
This commit is contained in:
parent
fc632b5795
commit
707660b35f
|
@ -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(/</, "<").replace(/>/, ">"),
|
||||
|
|
Loading…
Reference in New Issue