mirror of https://github.com/gophish/gophish
Added escaping for error message in sending profile hostname
parent
81aa65ba62
commit
90fed5a575
File diff suppressed because one or more lines are too long
|
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue