projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e302f6a
)
BUG/MINOR: mworker/cli: fix semicolon escaping in master CLI
author
William Lallemand
<wlallemand@haproxy.com>
Thu, 18 Jun 2020 16:45:04 +0000
(18:45 +0200)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Fri, 3 Jul 2020 17:03:54 +0000
(19:03 +0200)
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 <cfaulet@haproxy.com>
src/cli.c
patch
|
blob
|
history
diff --git
a/src/cli.c
b/src/cli.c
index
3b89e93
..
f5b3a76
100644
(file)
--- 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') {