mumble-voip / mumble

Mumble is an open-source, low-latency, high quality voice chat software.
https://www.mumble.info
Other
6.31k stars 1.11k forks source link

[Request] Support unicode usernames #6368

Closed shleeable closed 6 months ago

shleeable commented 6 months ago

Context

unicode usernames seem to be rejected by default.

Description

People on a REDM server cannot connect when using unicode usernames.

Mumble component

Server (Murmur 1.6.304)

OS-specific?

No? Running on linux ubunutu 20.04

Additional information

<91:[107] 𝕮𝕯(-1)> Rejected connection from 101.98.39.137:2925: Invalid username
<91:[107] 𝕮𝕯(-1)> Connection closed:  [-1]
Krzmbrzl commented 6 months ago

They are rejected b default because there is lots of ways to play weird tricks with Unicode characters. But they are supported and can be enabled by the server admin.

shleeable commented 6 months ago

Hi @Krzmbrzl Thanks for the info, but I cannot find any documention to enable this. Can you help?

https://wiki.mumble.info/wiki/Murmur.ini doesn't have any reference to unicode

Do I need to find a regex which matches everything? and replace the default... no idea how to write regex but I can try

shleeable commented 6 months ago

^[\p{L}\p{M}]+$ maybe? so.. username='^[\p{L}\p{M}]+$'

Krzmbrzl commented 6 months ago

If you are not concerned that users start doing funny tricks with their usernames, you can simply do username='.+', which should match any non-empty name. If you are concerned about tricky names, using Unicode will name your life extremely hard as there are essentially endless possibilities to do funny things with it.