aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-04 14:00:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-04 14:00:26 +0100
commitc48231eb96a132c4a87521d4821fa4c23faeda99 (patch)
tree91ab8d58f574488d38b5267a16a86057dc8b63ee /src
parent675bd739a6651af46edea0a6fc23d0f27dcde0f0 (diff)
parentb641a36b6b26d9fa89c43f5d4b76560606418638 (diff)
downloadrspamd-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.lua8
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