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.6.5~3^2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f10976fcacba74e7787a00ab4d82ddae6df1cab;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 7c88928eb..c77ac10f3 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -221,6 +221,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 @@ -228,8 +231,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' }