]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix backward compatibility with old assumption about empty settings
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 26 Nov 2022 21:42:09 +0000 (21:42 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 26 Nov 2022 21:42:09 +0000 (21:42 +0000)
src/plugins/lua/settings.lua

index 80065ec4f26dc90be2c64cb677fe14a61f4788e4..9ae372dd7b106b56cad15aad12f15e0382483720 100644 (file)
@@ -1035,7 +1035,7 @@ local function process_settings_table(tbl, allow_ids, mempool, is_static)
             name, nchecks)
       end
     else
-      if not elt.disabled then
+      if not elt.disabled and elt.external_map then
         lua_util.debugm(N, rspamd_config, 'registered settings %s with no checks, assume it as implicit',
             name)
         out.implicit = 1