diff options
author | Andrew Lewis <nerf@judo.za.org> | 2015-03-11 14:35:22 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2015-03-11 14:35:22 +0200 |
commit | dc40269226c5116db1e45d936785ee4973e4557e (patch) | |
tree | b44e20a8554fae039479d0ab9dd3843da4d27e01 /src | |
parent | a5efa06e4b17429d94cd4c64211120c0fae342b3 (diff) | |
download | rspamd-dc40269226c5116db1e45d936785ee4973e4557e.tar.gz rspamd-dc40269226c5116db1e45d936785ee4973e4557e.zip |
Filter double-dots in rbl.lua validate_dns
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/rbl.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 327bcb4b4..ce43e54a2 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -37,6 +37,9 @@ local rspamd_logger = require 'rspamd_logger' local rspamd_ip = require 'rspamd_ip' local function validate_dns(lstr) + if lstr:match('%.%.') then + return false + end for v in lstr:gmatch('[^%.]+') do if not v:match('^[%w-]+$') or v:len() > 63 or v:match('^-') or v:match('-$') then |