[Web] Escape To field in Rspamd history log
parent
41d85dbf51
commit
5ead886fd6
|
@ -514,10 +514,10 @@ jQuery(function($){
|
||||||
if (table == 'rspamd_history') {
|
if (table == 'rspamd_history') {
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
if (item.rcpt_mime != "") {
|
if (item.rcpt_mime != "") {
|
||||||
item.rcpt = item.rcpt_mime.join(", ");
|
item.rcpt = escapeHtml(item.rcpt_mime.join(", "));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
item.rcpt = item.rcpt_smtp.join(", ");
|
item.rcpt = escapeHtml(item.rcpt_smtp.join(", "));
|
||||||
}
|
}
|
||||||
item.symbols = Object.keys(item.symbols).sort(function (a, b) {
|
item.symbols = Object.keys(item.symbols).sort(function (a, b) {
|
||||||
if (item.symbols[a].score === 0) return 1
|
if (item.symbols[a].score === 0) return 1
|
||||||
|
|
Loading…
Reference in New Issue