aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/plugins/neural.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-05 10:49:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-05 10:49:35 +0000
commit21249013d490c8591451dd2a4b48d365bc3c7779 (patch)
tree7795bb3e601333cf84325fe6eac3fe706e9feaac /lualib/plugins/neural.lua
parent8260c0c2204f03186997b03f9854efbadbb62ca8 (diff)
downloadrspamd-21249013d490c8591451dd2a4b48d365bc3c7779.tar.gz
rspamd-21249013d490c8591451dd2a4b48d365bc3c7779.zip
[CritFix] Neural: Fix sorting application
Thanks to: Gerald Auer
Diffstat (limited to 'lualib/plugins/neural.lua')
-rw-r--r--lualib/plugins/neural.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/plugins/neural.lua b/lualib/plugins/neural.lua
index 6f82089a4..433a17ac9 100644
--- a/lualib/plugins/neural.lua
+++ b/lualib/plugins/neural.lua
@@ -649,7 +649,8 @@ local function process_rules_settings()
end
-- Generic stuff
- table.sort(fun.totable(fun.filter(filter_symbols_predicate, selt.symbols)))
+ selt.symbols = fun.totable(fun.filter(filter_symbols_predicate, selt.symbols))
+ table.sort(selt.symbols)
selt.digest = lua_util.table_digest(selt.symbols)
selt.prefix = redis_ann_prefix(rule, selt.name)