From: Vsevolod Stakhov Date: Wed, 21 May 2014 17:41:16 +0000 (-0700) Subject: Fix after the previous commit. X-Git-Tag: 0.7.0~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9570c457bfb39b2324ed91f9996645e8271472e;p=thirdparty%2Frspamd.git Fix after the previous commit. --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index da52c0fba4..cef48f8b63 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 index 0375252cb9..d84b73bb28 160000 --- a/src/ucl +++ b/src/ucl @@ -1 +1 @@ -Subproject commit 0375252cb9ca2e0095ff49139170a2d35475779e +Subproject commit d84b73bb28b0bd762c3a5cd3183e6ba5e86b4a19