]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix old bug that score was not converted to a number
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 15 May 2023 08:18:45 +0000 (09:18 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 15 May 2023 08:18:45 +0000 (09:18 +0100)
src/plugins/lua/multimap.lua

index 81f9149507670456ceab1f1903cef219384bbbad..7f61a8b7e45712b07cadfd6ee1845f8013139593 100644 (file)
@@ -538,7 +538,7 @@ local function multimap_callback(task, rule)
           sym = tbl.symbol
         end
         if tbl.score then
-          score = tbl.score
+          score = tonumber(tbl.score)
         end
         if tbl.opts then
           opts = tbl.opts