aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 16:05:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-11 16:05:31 +0000
commitf6d8c77acae981b311203c59d85892f87a83a4ba (patch)
tree7288bc0ffcc0865f8b1a92fc29ae33048603e22d
parente6fd6b13d306316c2c0e10228cafb5fe909b3553 (diff)
parentdc40269226c5116db1e45d936785ee4973e4557e (diff)
downloadrspamd-f6d8c77acae981b311203c59d85892f87a83a4ba.tar.gz
rspamd-f6d8c77acae981b311203c59d85892f87a83a4ba.zip
Merge pull request #206 from fatalbanana/master
Fix missing symbol registration
-rw-r--r--conf/modules.conf1
-rw-r--r--src/plugins/lua/rbl.lua3
2 files changed, 4 insertions, 0 deletions
diff --git a/conf/modules.conf b/conf/modules.conf
index 63ff8ef1d..413e7e00b 100644
--- a/conf/modules.conf
+++ b/conf/modules.conf
@@ -278,4 +278,5 @@ hfilter {
from_enabled = true;
rcpt_enabled = true;
mid_enabled = true;
+ rcpt_enabled = true;
}
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