Selaa lähdekoodia

[Minor] Fix find to search for plain substrings only

tags/3.2
Vsevolod Stakhov 2 vuotta sitten
vanhempi
commit
03ff121256
No account linked to committer's email address
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      src/plugins/lua/reputation.lua

+ 1
- 1
src/plugins/lua/reputation.lua Näytä tiedosto

@@ -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…
Peruuta
Tallenna