diff options
author | Andrew Lewis <nerf@judo.za.org> | 2018-02-27 15:18:48 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2018-02-27 15:18:48 +0200 |
commit | 6179837c52a4e16e6e4d4e07d9c8b3a813943038 (patch) | |
tree | e4c03ca42ec43219ead7286f0ba7e56e000f6686 /lualib/lua_redis.lua | |
parent | 1e54b03ed676b1daf34c3a70263297d2f4f43529 (diff) | |
download | rspamd-6179837c52a4e16e6e4d4e07d9c8b3a813943038.tar.gz rspamd-6179837c52a4e16e6e4d4e07d9c8b3a813943038.zip |
[Fix] Redis key expansion: EVAL: deal with strings
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r-- | lualib/lua_redis.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |