Skip to content

Commit

Permalink
sanitize input of alert table
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Jan 12, 2024
1 parent a85f570 commit a1bbf1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eNMS/static/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,15 +1187,15 @@ function getAlerts(preview) {
<span class="time" style="font-size: ${fontSize}">
${alert[3]}
</span><br />
<span>${alert[0]}</span>
<span>${sanitize(alert[0])}</span>
</a>
</li>`;
} else {
return `
<tr>
<td>${alert[3]}</td>
<td>${alert[1]}</td>
<td>${alert[0]}</td>
<td>${sanitize(alert[0])}</td>
</tr>`;
}
})
Expand Down

0 comments on commit a1bbf1d

Please sign in to comment.