]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: Add internal function which strip spaces
authorThierry Fournier <tfournier@arpalert.org>
Wed, 24 Feb 2016 07:06:32 +0000 (08:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Mar 2016 13:45:45 +0000 (15:45 +0200)
commit94ed1c127ea65658545ceba1e92dd902c2d942cd
tree151a59d276e13519a2c479fdd0996d3a4bf0f499
parent3d4a675f244f3b2a9249d8e4d9a9198ad9791c7b
MINOR: lua: Add internal function which strip spaces

Some internal HAproxy error message are provided with a final '\n'.
Its typically for the integration in the CLI. Sometimes, these messages
are returned as Lua string. These string must be without "\n" or final
spaces.

This patch adds a function whoch removes unrequired parameters.
src/hlua_fcn.c