commit 099ed33: [Minor] Neural: Disable settings in neural plugin unless specified explicitly
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Jul 23 17:28:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-07-23 18:21:18 +0100
URL: https://github.com/rspamd/rspamd/commit/099ed332ccc4ce1232986d07935eabcdae1548b4
[Minor] Neural: Disable settings in neural plugin unless specified explicitly
---
src/plugins/lua/neural.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index 745c516dc..8bec374fc 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -1176,6 +1176,8 @@ local function process_rules_settings()
for _,rule in pairs(settings.rules) do
if not rule.allowed_settings then
+ rule.allowed_settings = {}
+ elseif rule.allowed_settings == 'all' then
-- Extract all settings ids
rule.allowed_settings = lua_util.keys(lua_settings.all_settings())
end
More information about the Commits
mailing list