]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli: handle correctly prefix and payload
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Dec 2018 08:05:48 +0000 (09:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Dec 2018 08:45:16 +0000 (09:45 +0100)
commit3301f3e5cdecf2439762a678c1c2e9846a41e0f6
tree9b3688f5472335c0d01541b939bb59b22f23b0b6
parentb7ea141cbb566c89c42cee71d3fadf1df6138828
BUG/MEDIUM: cli: handle correctly prefix and payload

In the master CLI, the commands and the prefix were still parsed and
trimmed after the pattern payload. Don't parse anything but the end of a
line till we are in payload mode.

Put the search of the pattern after the trim so we can use correctly a
payload with a command which is prefixed by @.
src/cli.c