You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug !mjolnir powerlevel does not check for illegal characters in the user identifier. If I remember that correctly, only lowercase letters, numbers, underscores, and dashes are allowed.
To Reproduce
It is possible to set the powerlevel using a user identifier with illegal characters. (Tested with mjolnir v1.2.1)
!mjolnir powerlevel @FooBarBaz:matrix.org 50 (Uppercase letters are not allowed, I haven't tested other characters)
See room roles & permissions
Expected behavior
The bot should throw an error.
The text was updated successfully, but these errors were encountered:
MichaelSasser
changed the title
Powerlevel allows illegal characters
Powerlevel allows illegal characters in the user identifier
Jan 27, 2022
Note that uppercase letters are allowed in historical user IDs (meaning there are real users with uppercase user IDs), and arbitrary unicode is allowed in user IDs over federation (meaning a server admin could create user IDs with any unicode characters and other servers will accept them). See also: matrix-org/matrix-spec-proposals#2828
Describe the bug
!mjolnir powerlevel
does not check for illegal characters in the user identifier. If I remember that correctly, only lowercase letters, numbers, underscores, and dashes are allowed.To Reproduce
It is possible to set the powerlevel using a user identifier with illegal characters. (Tested with mjolnir v1.2.1)
!mjolnir powerlevel @FooBarBaz:matrix.org 50
(Uppercase letters are not allowed, I haven't tested other characters)Expected behavior
The bot should throw an error.
The text was updated successfully, but these errors were encountered: