]> source.dussan.org Git - rspamd.git/commitdiff
rbl.lua: remove un-needed character from pattern match 162/head
authorAndrew Lewis <nerf@judo.za.org>
Fri, 13 Feb 2015 10:22:19 +0000 (12:22 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 13 Feb 2015 10:22:19 +0000 (12:22 +0200)
src/plugins/lua/rbl.lua

index 717520c4c3d614de6839491756a75b1abf8a11c1..0106e41f3e5eb01e23c2324ba9df30e77b85ed1a 100644 (file)
@@ -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