mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
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:
parent
fe249c3df5
commit
02c255e64b
@ -2034,7 +2034,7 @@ int pcli_parse_request(struct stream *s, struct channel *req, char **errmsg, int
|
|||||||
while (p+reql < end) {
|
while (p+reql < end) {
|
||||||
/* handle escaping */
|
/* handle escaping */
|
||||||
if (p[reql] == '\\') {
|
if (p[reql] == '\\') {
|
||||||
reql++;
|
reql+=2;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (p[reql] == ';' || p[reql] == '\n') {
|
if (p[reql] == ';' || p[reql] == '\n') {
|
||||||
|
Loading…
Reference in New Issue
Block a user