]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix find to search for plain substrings only
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Mar 2022 20:06:59 +0000 (20:06 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Mar 2022 20:06:59 +0000 (20:06 +0000)
src/plugins/lua/reputation.lua

index ff292525a7304d59f653c9695e34a5252d0d2258..de873abff94b4ce556fefaa1239ed678312ba836 100644 (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