Browse Source

[Fix] Fix matching patterns with no paths

tags/1.7.6
Vsevolod Stakhov 6 years ago
parent
commit
b2c78d1b07
1 changed files with 9 additions and 2 deletions
  1. 9
    2
      src/plugins/lua/phishing.lua

+ 9
- 2
src/plugins/lua/phishing.lua View File

for _,d in ipairs(elt) do for _,d in ipairs(elt) do
if not d['path'] then if not d['path'] then
found_path = true 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 found_query = true
break
end end
end end
end end
task:insert_result(phish_symbol, 1.0, args) task:insert_result(phish_symbol, 1.0, args)
else else
-- Host + path match -- 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 end
else else
if url:is_phished() then if url:is_phished() then

Loading…
Cancel
Save