aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-03-11 14:35:22 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-03-11 14:35:22 +0200
commitdc40269226c5116db1e45d936785ee4973e4557e (patch)
treeb44e20a8554fae039479d0ab9dd3843da4d27e01 /src
parenta5efa06e4b17429d94cd4c64211120c0fae342b3 (diff)
downloadrspamd-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.lua3
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