summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-21 10:41:16 -0700
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-21 10:41:16 -0700
commitf9570c457bfb39b2324ed91f9996645e8271472e (patch)
tree3d175dcbbd8d2bef157021a8229a987d40d5dc9d /src
parenta84b51ada108711438eb9bc96b410b8b4fe038fb (diff)
downloadrspamd-f9570c457bfb39b2324ed91f9996645e8271472e.tar.gz
rspamd-f9570c457bfb39b2324ed91f9996645e8271472e.zip
Fix after the previous commit.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua4
m---------src/ucl0
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index da52c0fba..cef48f8b6 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -25,14 +25,14 @@ local function rbl_cb (task)
local foundrc = false
for s,i in pairs(thisrbl['returncodes']) do
if type(i) == 'string' then
- if (string.find(ipstr, i)) then
+ if string.find(ipstr, "^" .. v .. "$") then
foundrc = true
task:insert_result(s, 1)
break
end
elseif type(i) == 'table' then
for _,v in pairs(i) do
- if (string.find(ipstr, v)) then
+ if string.find(ipstr, "^" .. v .. "$") then
foundrc = true
task:insert_result(s, 1)
break
diff --git a/src/ucl b/src/ucl
-Subproject 0375252cb9ca2e0095ff49139170a2d35475779
+Subproject d84b73bb28b0bd762c3a5cd3183e6ba5e86b4a1