]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix dynamic_symbols in the multimap plugin 4976/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 20 May 2024 17:57:00 +0000 (18:57 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 20 May 2024 17:57:00 +0000 (18:57 +0100)
src/plugins/lua/multimap.lua

index 600a09c4ff9075a6ae9c59a8d279290e044609f4..c67b3ddbe97dacaf29750bf0907e696585029059 100644 (file)
@@ -1124,7 +1124,7 @@ local function multimap_on_load_gen(rule)
         lua_util.debugm(N, rspamd_config, "%s: adding new symbol %s (score = %s), triggered by %s",
             rule.symbol, symbol, score, key)
         rspamd_config:register_symbol {
-          name = value,
+          name = symbol,
           parent = rule.callback_id,
           type = 'virtual',
           score = score,
@@ -1133,7 +1133,7 @@ local function multimap_on_load_gen(rule)
           group = N,
           score = 1.0, -- In future, we will parse score from `get_value` and use it as multiplier
           description = 'Automatic symbol generated by rule: ' .. rule.symbol,
-          name = value,
+          name = symbol,
         })
         known_symbols[value] = true
       end