diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-09 21:17:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-09 21:17:53 +0000 |
commit | ba5b6773e24de6179e730ab59d9fe6e376b40c80 (patch) | |
tree | 65e68a968f86d20a493971db40f224e1967da60b /rules | |
parent | 9531673b2c627d94bea3e136ea956eca6a7364a3 (diff) | |
download | rspamd-ba5b6773e24de6179e730ab59d9fe6e376b40c80.tar.gz rspamd-ba5b6773e24de6179e730ab59d9fe6e376b40c80.zip |
[Minor] Fix OMOGRAPH_URL for the changes in the phished flag
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 376e6990f..8f98fcc06 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -399,7 +399,10 @@ rspamd_config.OMOGRAPH_URL = { if u:is_phished() then local h1 = u:get_host() - local h2 = u:get_phished():get_host() + local h2 = u:get_phished() + if h2 then -- Due to changes of the phished flag in 2.8 + h2 = h2:get_host() + end if h1 and h2 then local selt = string.format('%s->%s', h1, h2) if not seen[selt] and util.is_utf_spoofed(h1, h2) then |