Skip to content

Special symbols in matrix names #10994

Closed
matrix-org/matrix-react-sdk
#11166
@itay-grudev

Description

@itay-grudev

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:

Screenshot from 2019-09-29 12-47-51

And after posting produces the following message:

Screenshot from 2019-09-29 12-48-39

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PillsO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions