commit 51ea5d5: [Minor] Fix old bug that score was not converted to a number

Vsevolod Stakhov vsevolod at rspamd.com
Mon May 15 08:21:04 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-05-15 09:18:45 +0100
URL: https://github.com/rspamd/rspamd/commit/51ea5d5f2683610ba1a09ce93647ded20daf1752 (HEAD -> master)

[Minor] Fix old bug that score was not converted to a number

---
 src/plugins/lua/multimap.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 81f914950..7f61a8b7e 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -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


More information about the Commits mailing list