Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Restrict username length properly #2676

Merged
merged 1 commit into from
Aug 26, 2022
Merged

Conversation

neilalexander
Copy link
Contributor

This fixes #2674 by fixing the username check to comply with the spec appendices:

The length of a user ID, including the @ sigil and the domain, MUST NOT exceed 255 characters.

@neilalexander neilalexander added C-Client-API spec-compliance Fix something that doesn't comply with the specs labels Aug 26, 2022
@neilalexander neilalexander requested a review from a team as a code owner August 26, 2022 08:41
@neilalexander neilalexander merged commit 38bed30 into main Aug 26, 2022
@neilalexander neilalexander deleted the neilalexander/fix2674 branch August 26, 2022 08:56
0x1a8510f2 pushed a commit to 0x1a8510f2/dendrite that referenced this pull request Sep 12, 2022
This fixes matrix-org#2674 by fixing the username check to comply with the [spec appendices](https://spec.matrix.org/v1.3/appendices/#user-identifiers):

> The length of a user ID, including the @ sigil and the domain, MUST NOT exceed 255 characters.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-Client-API spec-compliance Fix something that doesn't comply with the specs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dendrite not properly checking mxid length
2 participants