From a36f8ba00d0803c8727cbc84fb77cd4e7c3d1451 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 18 Dec 2017 14:16:25 +0000 Subject: [PATCH] Forbid colons in MXIDs There is a single (AS) user on matrix.org who has a colon in their localpart, but I suspect that is an artifact of old bridge code and won't work over federation anyway. Colons in MXIDs are particularly harmful because they make it impossible to split mxids into local- and remote-parts --- specification/appendices/identifier_grammar.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/appendices/identifier_grammar.rst b/specification/appendices/identifier_grammar.rst index d53f61ac..e85bf410 100644 --- a/specification/appendices/identifier_grammar.rst +++ b/specification/appendices/identifier_grammar.rst @@ -139,7 +139,7 @@ history includes events with a ``sender`` which does not conform. In order to handle these rooms successfully, clients and servers MUST accept user IDs with localparts from the expanded character set:: - extended_user_id_char = %x21-7E + extended_user_id_char = %x21-39 / %x3B-7F ; all ascii printing chars except : Mapping from other character sets <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<