Skip to content

Commit 510238a

Browse files
JisanAR03DonnieBLT
authored andcommitted
fix security issue #1337
1 parent a4af7b1 commit 510238a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/templates/report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h2 class="text-2xl font-semibold leading-7 text-gray-900">
356356
const screenshots = document.getElementById('screenshots');
357357
let manage_div = document.getElementById("files_manage");
358358

359-
function escapeHtml(str) {return str.replace(/[&<>"'/]/g, function (s) {var entityMap = {"&": "&amp;","<": "&lt;",">": "&gt;",'"': '&quot;',"'": '&#39;',"/": '&#x2F;'};return entityMap[s];});}
359+
function escapeHtml(str) {return str.replace(/[&<>"']/g, function (s) {var entityMap = {"&": "&amp;","<": "&lt;",">": "&gt;",'"': '&quot;',"'": '&#39;',};return entityMap[s];});}
360360
function previewFile(file_name) {
361361
event.preventDefault();
362362
Array.from(screenshots.files).map(file => {

0 commit comments

Comments
 (0)