]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli: allow the backslash to be escaped on the CLI
authorDragan Dosen <ddosen@haproxy.com>
Thu, 24 Nov 2016 10:33:12 +0000 (11:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 Dec 2016 13:23:41 +0000 (14:23 +0100)
commita1c35ab68d59f877b54dab7f296d3fdd6edff6e9
tree985f5504a0b1aa5ae6090c391e7536e8657dc470
parent796c5b79974f5b692da721385e849a56849b127d
BUG/MINOR: cli: allow the backslash to be escaped on the CLI

In 1.5-dev20, commit 48bcfda ("MEDIUM: dumpstat: make the CLI parser
understand the backslash as an escape char") introduced support for
backslash on the CLI, but it strips all backslashes in all arguments
instead of only unescaping them, making it impossible to pass a
backslash in an argument.

This will allow us to use a backslash in a command over the socket, eg.
"add acl #0 ABC\\XYZ".

[wt: this should be backported to 1.7 and 1.6]
doc/management.txt
src/cli.c