diff options
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/plugins/rbl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |