diff options
| author | Wladimir J. van der Laan <[email protected]> | 2019-10-10 13:25:08 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2019-10-15 10:53:17 +0200 |
| commit | d7820a1250070f3640246ae497e049bee0b3516f (patch) | |
| tree | 266d939618fc74196736a9a3e2a9ccb538cc4a4f /src/httpserver.cpp | |
| parent | Merge #17057: build: switch to upstream libdmg-hfsplus (diff) | |
| download | discoin-d7820a1250070f3640246ae497e049bee0b3516f.tar.xz discoin-d7820a1250070f3640246ae497e049bee0b3516f.zip | |
util: Filter control characters out of log messages
Belts and suspenders: make sure outgoing log messages don't contain
potentially suspicious characters, such as terminal control codes.
This escapes control characters except newline ('\n') in C syntax.
It escapes instead of removes them to still allow for troubleshooting
issues where they accidentally end up in strings.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions