From: Andrew Lewis Date: Fri, 15 Dec 2023 13:02:52 +0000 (+0200) Subject: [Minor] rbl: revisit previous change X-Git-Tag: 3.8.0~28^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4747%2Fhead;p=rspamd.git [Minor] rbl: revisit previous change --- diff --git a/lualib/plugins/rbl.lua b/lualib/plugins/rbl.lua index 812407f4d..b5232a8b4 100644 --- a/lualib/plugins/rbl.lua +++ b/lualib/plugins/rbl.lua @@ -203,7 +203,7 @@ local function convert_checks(rule) if rule.returncodes and not rule.returncodes_matcher then for _, v in pairs(rule.returncodes) do for _, e in ipairs(v) do - if e:find('%', 1, true) or e:find('[%.%d%x:]%[', 1, false) then + if e:find('[%%%[]') then rspamd_logger.warn(rspamd_config, 'implicitly enabling luapattern returncodes_matcher for rule %s', rule.symbol) rule.returncodes_matcher = 'luapattern' break