diff options
| author | Wladimir J. van der Laan <[email protected]> | 2019-10-10 13:25:08 +0200 |
|---|---|---|
| committer | fanquake <[email protected]> | 2019-10-19 14:58:27 -0400 |
| commit | 0b18ea6f570e24c9719c10eb6e125da743409c58 (patch) | |
| tree | 326e9024ec8db22e81d6465cb2e4a756aec3b39e /src/script/script_error.cpp | |
| parent | build: Factor out qt translations from build system (diff) | |
| download | discoin-0b18ea6f570e24c9719c10eb6e125da743409c58.tar.xz discoin-0b18ea6f570e24c9719c10eb6e125da743409c58.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.
Github-Pull: #17095
Rebased-From: d7820a1250070f3640246ae497e049bee0b3516f
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions