[Web] Escape To field in Rspamd history log

master
andryyy 2020-10-18 19:44:56 +02:00
parent 41d85dbf51
commit 5ead886fd6
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 2 deletions

View File

@ -514,10 +514,10 @@ jQuery(function($){
if (table == 'rspamd_history') {
$.each(data, function (i, item) {
if (item.rcpt_mime != "") {
item.rcpt = item.rcpt_mime.join(", ");
item.rcpt = escapeHtml(item.rcpt_mime.join(", "));
}
else {
item.rcpt = item.rcpt_smtp.join(", ");
item.rcpt = escapeHtml(item.rcpt_smtp.join(", "));
}
item.symbols = Object.keys(item.symbols).sort(function (a, b) {
if (item.symbols[a].score === 0) return 1