diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-07-11 12:21:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 12:21:00 -0400 |
commit | a4243183f0b500f9f30f2d24af19f30a99f65f63 (patch) | |
tree | f3590f5a33f30f814452f70377a8f1352d02898a /synapse/handlers/saml.py | |
parent | Don't build wheels for Python 3.7 (#15917) (diff) | |
download | synapse-a4243183f0b500f9f30f2d24af19f30a99f65f63.tar.xz |
Add + as an allowed character for Matrix IDs (MSC4009) (#15911)
Diffstat (limited to 'synapse/handlers/saml.py')
-rw-r--r-- | synapse/handlers/saml.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/saml.py b/synapse/handlers/saml.py index 874860d461..6083c9f4b5 100644 --- a/synapse/handlers/saml.py +++ b/synapse/handlers/saml.py @@ -27,9 +27,9 @@ from synapse.http.servlet import parse_string from synapse.http.site import SynapseRequest from synapse.module_api import ModuleApi from synapse.types import ( + MXID_LOCALPART_ALLOWED_CHARACTERS, UserID, map_username_to_mxid_localpart, - mxid_localpart_allowed_characters, ) from synapse.util.iterutils import chunk_seq @@ -371,7 +371,7 @@ class SamlHandler: DOT_REPLACE_PATTERN = re.compile( - "[^%s]" % (re.escape("".join(mxid_localpart_allowed_characters)),) + "[^%s]" % (re.escape("".join(MXID_LOCALPART_ALLOWED_CHARACTERS)),) ) |