-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sanitise control characters in message bodies
Control characters in message bodies can result in UI corruption (e.g. when horizontal tab characters occur). It is also a security issue (ANSI escapes causing undesired terminal behaviour). Add a Text sanitisation function and use it when converting entities for display. There are most certainly other places in the UI we need to employ it, and we should properly audit the codebase - perhaps even using phantom types to taint unsanitised external data. But this is a starting point. Also do a drive-by tidy-up of UI.Utils. Fixes: #265
- Loading branch information
1 parent
7ad0ade
commit a085315
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters