diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-05 10:49:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-05 10:49:35 +0000 |
commit | 21249013d490c8591451dd2a4b48d365bc3c7779 (patch) | |
tree | 7795bb3e601333cf84325fe6eac3fe706e9feaac /lualib/plugins/neural.lua | |
parent | 8260c0c2204f03186997b03f9854efbadbb62ca8 (diff) | |
download | rspamd-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.lua | 3 |
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) |