From: Andrew Lewis Date: Tue, 27 Feb 2018 13:18:48 +0000 (+0200) Subject: [Fix] Redis key expansion: EVAL: deal with strings X-Git-Tag: 1.7.0~110^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6179837c52a4e16e6e4d4e07d9c8b3a813943038;p=thirdparty%2Frspamd.git [Fix] Redis key expansion: EVAL: deal with strings --- diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index a23ad781ff..aab0fc8f14 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -225,7 +225,7 @@ local process_cmd = { eval = function(args) local idx_l = {} local numkeys = args[2] - if numkeys >= 1 then + if numkeys and tonumber(numkeys) >= 1 then for i = 3, numkeys + 2 do table.insert(idx_l, i) end