CONFIG REWRITE: correctly escape the notify-keyspace-events option.
This commit is contained in:
parent
a5bbd0b5cc
commit
e5bd70d9f5
@ -1381,7 +1381,9 @@ void rewriteConfigNotifykeyspaceeventsOption(struct rewriteConfigState *state) {
|
|||||||
sds line, flags;
|
sds line, flags;
|
||||||
|
|
||||||
flags = keyspaceEventsFlagsToString(server.notify_keyspace_events);
|
flags = keyspaceEventsFlagsToString(server.notify_keyspace_events);
|
||||||
line = sdscatprintf(sdsempty(),"%s %s", option, flags);
|
line = sdsnew(option);
|
||||||
|
line = sdscatlen(line, " ", 1);
|
||||||
|
line = sdscatrepr(line, flags, sdslen(flags));
|
||||||
sdsfree(flags);
|
sdsfree(flags);
|
||||||
rewriteConfigRewriteLine(state,option,line,force);
|
rewriteConfigRewriteLine(state,option,line,force);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user