BUG/MINOR: mworker/cli: fix semicolon escaping in master CLI

Fix the semicolon escaping which must be handled in the master CLI,
the commands were wrongly splitted and could be forwarded partially to
the target CLI.
This commit is contained in:
William Lallemand 2020-06-18 18:45:04 +02:00 committed by William Lallemand
parent fe249c3df5
commit 02c255e64b

View File

@ -2034,7 +2034,7 @@ int pcli_parse_request(struct stream *s, struct channel *req, char **errmsg, int
while (p+reql < end) {
/* handle escaping */
if (p[reql] == '\\') {
reql++;
reql+=2;
continue;
}
if (p[reql] == ';' || p[reql] == '\n') {