提交 901ceab2 编写于 作者: A antirez

CONFIG REWRITE: correctly escape the notify-keyspace-events option.

上级 b4ce0298
......@@ -1358,7 +1358,9 @@ void rewriteConfigNotifykeyspaceeventsOption(struct rewriteConfigState *state) {
sds line, flags;
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);
rewriteConfigRewriteLine(state,option,line,force);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册