prevent xss attacks by manipulating image file names

This commit is contained in:
Bjoern Schiessle 2012-06-04 16:22:25 +02:00
parent d5566d0267
commit 4bc88ef59d
1 changed files with 1 additions and 1 deletions

View File

@ -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(/</, "&lt;").replace(/>/, "&gt;"),
"titlePosition": "inside"
});
}