MINOR: common: escape CSV strings
authorThierry FOURNIER <tfournier@haproxy.com>
Thu, 28 May 2015 14:00:28 +0000 (16:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 15:47:19 +0000 (17:47 +0200)
commitddea626de4cf8397cd84c1db84579d01c296de05
tree91cc30cd535abda745821de70bc5adfb7b8d03af
parent2de8a50918b9d66da74d27395adf5f9a0260a257
MINOR: common: escape CSV strings

This function checks a string for using it in a CSV output format. If
the string contains one of the following four char <">, <,>, CR or LF,
the string is encapsulated between <"> and the <"> are escaped by a <"">
sequence.

The rounding by <"> is optionnal. It can be canceled, forced or the
function choose automatically the right way.
include/common/standard.h
src/standard.c