From: Andrew Lewis Date: Sun, 17 Nov 2013 19:24:52 +0000 (+0200) Subject: Obscure braindamage X-Git-Tag: 0.6.0~56^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63d5951cace80425f3c29ec103d85d168e6e561e;p=rspamd.git Obscure braindamage --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index afc385922..bcbe5ff81 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -70,10 +70,9 @@ end function multimap_rbl_cb(task, to_resolve, results, err) if results then - local _,_,o4,o3,o2,o1,in_rbl = string.find(to_resolve, '(%d+)%.(%d+)%.(%d+)%.(%d+)%.(.+)') -- Get corresponding rule by rbl name for _,rule in pairs(rules) do - if string.ends(in_rbl, rule['map']) then + if string.ends(to_resolve, rule['map']) then task:insert_result(rule['symbol'], 1, rule['map']) return end