commit | ba8d7d3916d4ccbf0ddb152807ad80307d427777 | [log] [tgz] |
---|---|---|
author | Krzysztof Piotr Oledzki <ole@ans.pl> | Sat Oct 10 21:06:03 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat Oct 10 21:51:16 2009 +0200 |
tree | a5eb8623b5636f5bbc645c563f401147be3da6aa | |
parent | 3d5562b96ce91b75d468f8d50ad0d1c2df4ddc6f [diff] |
[MINOR] Add chunk_htmlencode and chunk_asciiencode Add two functions to encode input chunk replacing non-printable, non ascii or special characters with: "&#%u;" - chunk_htmlencode "<%02X>" - chunk_asciiencode Above functions should be used when adding strings, received from possible unsafe sources, to html stats or logs.