From 84ee2815a5c5d4656eacfddd2f06c1c3f13b660e Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 15 Dec 2023 15:02:52 +0200 Subject: [PATCH] [Minor] rbl: revisit previous change --- lualib/plugins/rbl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5