Description
Description
When a user uses special characters in their name it breaks the citing feature. Here is an example of a user that uses two line feed characters in their name which produces the following result in the message input field:
And after posting produces the following message:
The exact JSON with the user details is the following:
{
"displayname": "\n\nJonas"
}
Interesting note: The API returns the line feeds in the name, but the user claims what they originally inputted was an em-space character. So this is likely the results of an ASCII transformation of the non-ASCII characters (hence his message, intentionally included in the screenshot).
Steps to reproduce
- Find a user with a hacked name that includes new lines
- Try and cite them
- Be miserable for a second hating Riot and Matrix while they are both really great projects.
- Post the message, then edit it and remove the new lines to produce a nice looking pill.
Version information
riot: 1.4.0
matrix-react-sdk version: 1.6.0
riot-web version: master
olm version: 3.1.0