Ver código fonte

[Minor] Fix find to search for plain substrings only

tags/3.2
Vsevolod Stakhov 2 anos atrás
pai
commit
03ff121256
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/plugins/lua/reputation.lua

+ 1
- 1
src/plugins/lua/reputation.lua Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar