]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: allow the semi-colon to be escaped on the CLI
authorChad Lavoie <clavoie@haproxy.com>
Thu, 26 May 2016 20:42:25 +0000 (16:42 -0400)
committerWilly Tarreau <w@1wt.eu>
Tue, 30 Aug 2016 20:32:23 +0000 (22:32 +0200)
commite3f5031b5186367d8559dad5170cf88bff923a04
tree52169d977492f6f124e02ce53e9acba61ce814e0
parent74967f60ec137f2b6006b33dec8df5464f17cea7
MINOR: cli: allow the semi-colon to be escaped on the CLI

Today I was working on an auto-update script for some ACLs, and found
that I couldn't load ACL entries with a semi-colon in them no matter
how I tried to escape it.

As such, I wrote this patch (this one is for 1.7dev, but it applies to
1.5 the same with just line numbers changed), which seems to allow me
to execute a command such as "add acl /etc/foo.lst foo\;bar" over the
socket. It's worth noting that stats_sock_parse_request() already uses
the backslash to escape spaces in words so it makes sense to use it as
well to escape the semi-colon.
doc/management.txt
src/dumpstats.c