From: Vsevolod Stakhov Date: Thu, 25 Nov 2021 15:34:04 +0000 (+0000) Subject: [Minor] Phishing: Fix confusing scoring X-Git-Tag: 3.2~224 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a25359258fbb5465d7b6a4f0e18e57fa6ae855b6;p=rspamd.git [Minor] Phishing: Fix confusing scoring --- diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index 0af9f738b..dac5e92e9 100644 --- a/src/plugins/lua/phishing.lua +++ b/src/plugins/lua/phishing.lua @@ -266,9 +266,8 @@ local function phishing_cb(task) lua_util.debugm(N, task, "confusable: %1 -> %2: different characters", tld, ptld, why) else - -- We have totally different strings in tld, so penalize it significantly - if dist > 2 then dist = 2 end - weight = util.tanh((2 - dist) * 0.5) + -- We have totally different strings in tld, so penalize it somehow + weight = 0.5 end end