commit 7bf0031: [Minor] Reputation: Fix script invocation

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jul 23 17:28:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-23 18:24:43 +0100
URL: https://github.com/rspamd/rspamd/commit/7bf0031790ef9c4d1bb8765745044d7bbeb874ea (HEAD -> master)

[Minor] Reputation: Fix script invocation

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

diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index b378960e2..aa6697eab 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -956,7 +956,7 @@ local function reputation_redis_set_token(task, rule, token, sc, continuation_cb
       {task = task, is_write = true},
       redis_set_cb,
       {key, tostring(os.time() * 1000),
-       tonumber(sc),
+       tostring(sc),
        tostring(rule.backend.config.expiry)})
   if not ret then
     rspamd_logger.errx(task, 'got error while connecting to redis')


More information about the Commits mailing list