prevent xss attacks by manipulating image file names

remotes/origin/stable4
Bjoern Schiessle 13 years ago
parent d5566d0267
commit 4bc88ef59d
  1. 2
      apps/files_imageviewer/js/lightbox.js

@ -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"
});
}

Loading…
Cancel
Save