From bbc3e7f047593a4c99a0269c5f0b45534c2a9947 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 13 Feb 2015 12:22:19 +0200 Subject: [PATCH] rbl.lua: remove un-needed character from pattern match --- src/plugins/lua/rbl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5