[Web] escape more html data

This commit is contained in:
FreddleSpl0it
2022-12-09 16:10:10 +01:00
parent ef392ef6ba
commit 6704377402
2 changed files with 7 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
$(document).ready(function() {
// mailcow alert box generator
window.mailcow_alert_box = function(message, type) {
msg = $('<span/>').text(message).text();
msg = $('<span/>').text(escapeHtml(message)).text();
if (type == 'danger' || type == 'info') {
auto_hide = 0;
$('#' + localStorage.getItem("add_modal")).modal('show');