From: Andrew Lewis Date: Fri, 13 Feb 2015 10:22:19 +0000 (+0200) Subject: rbl.lua: remove un-needed character from pattern match X-Git-Tag: 0.8.2~48^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bbc3e7f047593a4c99a0269c5f0b45534c2a9947;p=rspamd.git rbl.lua: remove un-needed character from pattern match --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 717520c4c..0106e41f3 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -11,7 +11,7 @@ local function validate_dns(lstr, rstr) return false end for v in lstr:gmatch("[^%.]+") do - if not v:match("^[%w%.-]+$") or v:len() > 63 + if not v:match("^[%w-]+$") or v:len() > 63 or v:match("^-") or v:match("-$") then return false end