]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix after the previous commit.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 21 May 2014 17:41:16 +0000 (10:41 -0700)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 21 May 2014 17:41:16 +0000 (10:41 -0700)
src/plugins/lua/rbl.lua
src/ucl

index da52c0fba4046e36b73a402506f90f02a2ca4ca5..cef48f8b6304af058537780bebd7c0ef8a625ca2 100644 (file)
@@ -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 0375252cb9ca2e0095ff49139170a2d35475779e..d84b73bb28b0bd762c3a5cd3183e6ba5e86b4a19 160000 (submodule)
--- a/src/ucl
+++ b/src/ucl
@@ -1 +1 @@
-Subproject commit 0375252cb9ca2e0095ff49139170a2d35475779e
+Subproject commit d84b73bb28b0bd762c3a5cd3183e6ba5e86b4a19