From 02c255e64bd528dfa9f77dc15912d692c2213cc5 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 18 Jun 2020 18:45:04 +0200 Subject: [PATCH] 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. --- src/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.c b/src/cli.c index 36438c7ca..b8fac13a8 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') {