From: William Lallemand Date: Thu, 18 Jun 2020 16:45:04 +0000 (+0200) Subject: BUG/MINOR: mworker/cli: fix semicolon escaping in master CLI X-Git-Tag: v2.1.8~67 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=34d7248d608e86b74fd9a976346bea50417267a1;p=haproxy-2.1.git 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. (cherry picked from commit 02c255e64bd528dfa9f77dc15912d692c2213cc5) Signed-off-by: Christopher Faulet --- diff --git a/src/cli.c b/src/cli.c index 3b89e93..f5b3a76 100644 --- a/src/cli.c +++ b/src/cli.c @@ -2070,7 +2070,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') {