From 6179837c52a4e16e6e4d4e07d9c8b3a813943038 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 27 Feb 2018 15:18:48 +0200 Subject: [PATCH] [Fix] Redis key expansion: EVAL: deal with strings --- lualib/lua_redis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index a23ad781f..aab0fc8f1 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