Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Fix: Possible XSS in Filename (#23)
Browse files Browse the repository at this point in the history
Remove File Name in Window Title
  • Loading branch information
f11h authored May 7, 2021
1 parent 87e0385 commit d004a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/static/js/file_viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function showFile(file, statusElement) {
contentSize: "500 500",
position: "left-top 30 20",
content: divNative,
headerTitle: "<span style='font-variant: initial; font-family: \"Telegrotesk Next Regular\";'>" + file.filename + "</span>",
headerTitle: "<span style='font-variant: initial; font-family: \"Telegrotesk Next Regular\";'>Bilddatei</span>",
theme: "#e20074",
});

Expand All @@ -85,7 +85,7 @@ async function showFile(file, statusElement) {
contentSize: "800 500",
position: "left-top 30 20",
content: divNative,
headerTitle: "<span style='font-variant: initial; font-family: \"Telegrotesk Next Regular\";'>" + file.filename + "</span>",
headerTitle: "<span style='font-variant: initial; font-family: \"Telegrotesk Next Regular\";'>Textdatei</span>",
theme: "#e20074",
callback: (panel) => {
console.log(panel);
Expand Down

0 comments on commit d004a19

Please sign in to comment.