diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-03-14 20:06:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-03-14 20:06:59 +0000 |
commit | 03ff121256bb6ce39827b34300aafbbf8275d619 (patch) | |
tree | f013f0d205c336c0f7651de333451754eaff2fe5 /src | |
parent | 8e387f507ad87fa25ffef34bf1c045ec490254ac (diff) | |
download | rspamd-03ff121256bb6ce39827b34300aafbbf8275d619.tar.gz rspamd-03ff121256bb6ce39827b34300aafbbf8275d619.zip |
[Minor] Fix find to search for plain substrings only
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/reputation.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua index ff292525a..de873abff 100644 --- a/src/plugins/lua/reputation.lua +++ b/src/plugins/lua/reputation.lua @@ -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 |