diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-04 14:00:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-04 14:00:26 +0100 |
commit | c48231eb96a132c4a87521d4821fa4c23faeda99 (patch) | |
tree | 91ab8d58f574488d38b5267a16a86057dc8b63ee /src | |
parent | 675bd739a6651af46edea0a6fc23d0f27dcde0f0 (diff) | |
parent | b641a36b6b26d9fa89c43f5d4b76560606418638 (diff) | |
download | rspamd-c48231eb96a132c4a87521d4821fa4c23faeda99.tar.gz rspamd-c48231eb96a132c4a87521d4821fa4c23faeda99.zip |
Merge pull request #618 from moisseev/phishing
Updates to phishing module
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/phishing.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index 338d16fdd..fcb2e5f7d 100644 --- a/src/plugins/lua/phishing.lua +++ b/src/plugins/lua/phishing.lua @@ -53,7 +53,7 @@ local function phishing_cb(task) if #redirector_domains > 0 then for _,rule in ipairs(redirector_domains) do if rule['map']:get_key(url:get_tld()) then - task:insert_result(rule['symbol'], weight, ptld) + task:insert_result(rule['symbol'], weight, ptld .. '->' .. tld) found = true end end @@ -61,7 +61,7 @@ local function phishing_cb(task) if not found and #strict_domains > 0 then for _,rule in ipairs(strict_domains) do if rule['map']:get_key(ptld) then - task:insert_result(rule['symbol'], 1.0, ptld) + task:insert_result(rule['symbol'], 1.0, ptld .. '->' .. tld) found = true end end @@ -69,10 +69,10 @@ local function phishing_cb(task) if not found then if domains then if domains:get_key(ptld) then - task:insert_result(symbol, weight, ptld) + task:insert_result(symbol, weight, ptld .. '->' .. tld) end else - task:insert_result(symbol, weight, ptld) + task:insert_result(symbol, weight, ptld .. '->' .. tld) end end end |