diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-11-25 15:34:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-11-25 15:34:04 +0000 |
commit | a25359258fbb5465d7b6a4f0e18e57fa6ae855b6 (patch) | |
tree | 66ff9cdab51891aae458e27a24f955f62548a17c /src/plugins/lua | |
parent | 22e79c1d13c295d9bb1e9f6936d496a682e706f5 (diff) | |
download | rspamd-a25359258fbb5465d7b6a4f0e18e57fa6ae855b6.tar.gz rspamd-a25359258fbb5465d7b6a4f0e18e57fa6ae855b6.zip |
[Minor] Phishing: Fix confusing scoring
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/phishing.lua | 5 |
1 files changed, 2 insertions, 3 deletions
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 |