aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/phishing.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/phishing.lua')
-rw-r--r--src/plugins/lua/phishing.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua
index e76ffc79a..69aec219f 100644
--- a/src/plugins/lua/phishing.lua
+++ b/src/plugins/lua/phishing.lua
@@ -75,8 +75,12 @@ local function phishing_cb(task)
for _,d in ipairs(elt) do
if not d['path'] then
found_path = true
+ end
+
+ if query and d['query'] and query == d['query'] then
+ found_query = true
+ elseif not d['query'] then
found_query = true
- break
end
end
end
@@ -101,7 +105,10 @@ local function phishing_cb(task)
task:insert_result(phish_symbol, 1.0, args)
else
-- Host + path match
- task:insert_result(phish_symbol, 0.3, args)
+ if path then
+ task:insert_result(phish_symbol, 0.3, args)
+ end
+ -- No path, no symbol
end
else
if url:is_phished() then