Skip to content
Snippets Groups Projects
Commit 4bc88ef5 authored by Björn Schießle's avatar Björn Schießle
Browse files

prevent xss attacks by manipulating image file names

parent d5566d02
No related branches found
No related tags found
No related merge requests found
......@@ -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"
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment