commit | ddea626de4cf8397cd84c1db84579d01c296de05 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@haproxy.com> | Thu May 28 16:00:28 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu May 28 17:47:19 2015 +0200 |
tree | 91cc30cd535abda745821de70bc5adfb7b8d03af | |
parent | 2de8a50918b9d66da74d27395adf5f9a0260a257 [diff] |
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.