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.2-dev10~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c255e64bd528dfa9f77dc15912d692c2213cc5;p=thirdparty%2Fhaproxy.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. --- diff --git a/src/cli.c b/src/cli.c index 36438c7ca8..b8fac13a88 100644 --- a/src/cli.c +++ b/src/cli.c @@ -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') {