prevent xss attacks by manipulating image file names
This commit is contained in:
parent
d5566d0267
commit
4bc88ef59d
|
@ -25,7 +25,7 @@ function viewImage(dir, file) {
|
|||
var location=OC.filePath('files','ajax','download.php')+'?files='+file+'&dir='+dir;
|
||||
$.fancybox({
|
||||
"href": location,
|
||||
"title": file,
|
||||
"title": file.replace(/</, "<").replace(/>/, ">"),
|
||||
"titlePosition": "inside"
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue