Clarify allowed control characters

pull/1506/head
Tulir Asokan 9 months ago
parent 97381fddb1
commit 9b75333162

@ -612,8 +612,8 @@ users whose user IDs do not conform to the permitted character set, and
a number of rooms whose history includes events with a `sender` which a number of rooms whose history includes events with a `sender` which
does not conform. In order to handle these rooms successfully, clients does not conform. In order to handle these rooms successfully, clients
and servers MUST accept user IDs with localparts consisting of any legal and servers MUST accept user IDs with localparts consisting of any legal
unicode codepoint except for `:`, including the empty string. Localparts unicode codepoint except for `:` and `NUL` (U+0000), including other control
MUST be valid UTF-8 sequences. characters and the empty string. Localparts MUST be valid UTF-8 sequences.
Servers SHOULD NOT produce user IDs with localparts outside of the following Servers SHOULD NOT produce user IDs with localparts outside of the following
character set, and SHOULD NOT forward such user IDs to clients when referenced character set, and SHOULD NOT forward such user IDs to clients when referenced
@ -673,8 +673,9 @@ human-readable. They are intended to be treated as fully opaque strings
by clients. by clients.
The localpart of a room ID (`opaque_id` above) may contain any valid The localpart of a room ID (`opaque_id` above) may contain any valid
unicode codepoints except `:`, but it is recommended to only include unicode codepoints, including control characters, except `:` and `NUL`
ASCII letters and digits (`A-Z`, `a-z`, `0-9`) when generating them. (U+0000), but it is recommended to only include ASCII letters and
digits (`A-Z`, `a-z`, `0-9`) when generating them.
#### Room Aliases #### Room Aliases

Loading…
Cancel
Save