]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[CritFix] Neural: Fix sorting application
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Feb 2021 10:49:35 +0000 (10:49 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Feb 2021 10:49:35 +0000 (10:49 +0000)
Thanks to: Gerald Auer

lualib/plugins/neural.lua

index 6f82089a42a1e154f4d17309cc75cd2cfa7bc01a..433a17ac96e64bcbcf562314b95b67622ef10226 100644 (file)
@@ -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)