website icon indicating copy to clipboard operation
website copied to clipboard

Limit usernames/room names/user input to specific set of characters

Open alopezlago opened this issue 9 months ago • 1 comments

There are lots of Unicode characters that create strange rendering behaviors which are useful for trolls. The basic 8-bit ASCII range should be enough for most user input (usernames, room names, etc.). For answers you could allow some extended characters for answers, but that shouldn't be necessary. This filtering should be done at least on the server-side.

I haven't checked the code everywhere, but you should consider limiting the length of all user inputs, not just usernames or chat messages.

alopezlago avatar May 13 '24 06:05 alopezlago