From: Vsevolod Stakhov Date: Thu, 28 Sep 2017 18:16:32 +0000 (+0100) Subject: [Fix] Fix enormous scores for R_WHITE_ON_WHITE X-Git-Tag: 1.7.0~604 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e287d09848aa47e380e94f69a11b44828e3f76f6;p=rspamd.git [Fix] Fix enormous scores for R_WHITE_ON_WHITE MFH: 1.6 --- diff --git a/rules/html.lua b/rules/html.lua index 81555839b..7cc0ccc91 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -220,6 +220,9 @@ rspamd_config.R_WHITE_ON_WHITE = { if ret then if transp_rate > 0.1 then + if transp_rate > 0.5 or transp_rate ~= transp_rate then + transp_rate = 0.5 + end return true,(transp_rate * 2.0),arg end end @@ -227,8 +230,9 @@ rspamd_config.R_WHITE_ON_WHITE = { return false end, - score = 6.0, + score = 4.0, group = 'html', + one_shot = true, description = 'Message contains low contrast text' }