Parcourir la source

[Minor] Fix find to search for plain substrings only

tags/3.2
Vsevolod Stakhov il y a 2 ans
Parent
révision
03ff121256
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/plugins/lua/reputation.lua

+ 1
- 1
src/plugins/lua/reputation.lua Voir le fichier

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

Chargement…
Annuler
Enregistrer