From f9570c457bfb39b2324ed91f9996645e8271472e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 21 May 2014 10:41:16 -0700 Subject: [PATCH] Fix after the previous commit. --- src/plugins/lua/rbl.lua | 4 ++-- src/ucl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.3