summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2014-08-06 16:56:23 -0400
committerantirez <antirez@gmail.com>2014-08-25 10:25:30 +0200
commit6b099c7de614bebe3e61a0cbb91af459cc67f1c3 (patch)
tree765cc64d7ee6710f4c4b7c96332514a6392d43c8
parentaa404fc11be08f45fa0785c43f5fc7426e2b14a4 (diff)
downloadredis-6b099c7de614bebe3e61a0cbb91af459cc67f1c3.tar.gz
Deny CLIENT command in scripts
We don't want scripts doing CLIENT SETNAME or CLIENT KILL or CLIENT LIST or CLIENT PAUSE. Originally reported by Chris Wj then proper action inspired by Itamar Haber. Reference: https://groups.google.com/forum/#!topic/redis-db/09B2EYwyVgk
-rw-r--r--src/redis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c
index eb8bfbc65..e58ceb047 100644
--- a/src/redis.c
+++ b/src/redis.c
@@ -266,7 +266,7 @@ struct redisCommand redisCommandTable[] = {
{"readwrite",readwriteCommand,1,"rF",0,NULL,0,0,0,0,0},
{"dump",dumpCommand,2,"ar",0,NULL,1,1,1,0,0},
{"object",objectCommand,3,"r",0,NULL,2,2,2,0,0},
- {"client",clientCommand,-2,"ar",0,NULL,0,0,0,0,0},
+ {"client",clientCommand,-2,"ars",0,NULL,0,0,0,0,0},
{"eval",evalCommand,-3,"s",0,evalGetKeys,0,0,0,0,0},
{"evalsha",evalShaCommand,-3,"s",0,evalGetKeys,0,0,0,0,0},
{"slowlog",slowlogCommand,-2,"r",0,NULL,0,0,0,0,0},