Added escaping for error message in sending profile hostname

pull/1938/head
Jordan Wright 2020-08-06 22:21:36 -05:00
parent 81aa65ba62
commit 90fed5a575
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@ function sendTestEmail() {
}) })
.error(function (data) { .error(function (data) {
$("#sendTestEmailModal\\.flashes").empty().append("<div style=\"text-align:center\" class=\"alert alert-danger\">\ $("#sendTestEmailModal\\.flashes").empty().append("<div style=\"text-align:center\" class=\"alert alert-danger\">\
<i class=\"fa fa-exclamation-circle\"></i> " + data.responseJSON.message + "</div>") <i class=\"fa fa-exclamation-circle\"></i> " + escapeHtml(data.responseJSON.message) + "</div>")
$("#sendTestModalSubmit").html(btnHtml) $("#sendTestModalSubmit").html(btnHtml)
}) })
} }