Browse Source

[Minor] Fix find to search for plain substrings only

tags/3.2
Vsevolod Stakhov 2 years ago
parent
commit
03ff121256
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/plugins/lua/reputation.lua

+ 1
- 1
src/plugins/lua/reputation.lua View File

@@ -177,7 +177,7 @@ local function dkim_reputation_filter(task, rule)
-- all requests to find any request with the matching tld
local sel_tld
for _,tld in ipairs(dkim_tlds) do
if k:find(tld) then
if k:find(tld, 1, true) then
sel_tld = tld
break
end

Loading…
Cancel
Save