소스 검색

[Minor] Fix OMOGRAPH_URL for the changes in the phished flag

tags/3.0
Vsevolod Stakhov 3 년 전
부모
커밋
ba5b6773e2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      rules/misc.lua

+ 4
- 1
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

Loading…
취소
저장