A user, twofoursixeight, reported an issue where any Unicode character, except spaces, can be exploited into a username. This can cause a profile to become unclickable if shared in the same forum. However, sam explained that this is by design due to the default off site setting for Unicode usernames. gerhard thanked the user for reporting the issue and recommended configuring the allowed unicode username characters site setting to prevent such issues. Despite this, gerhard created a fix to prevent the usage of invisible characters in usernames, which can be found in this pull request.
The unicode usernames site setting is off by default and we recommend configuring the allowed unicode username characters site setting in order to prevent issues like these, so this isn’t a huge issue (see Unicode usernames and group names).
Still, I’ve created a fix which will always prevent the usage of invisible characters in usernames even for those who haven’t configured the allowlist.