diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-06-01 10:42:33 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-06-01 10:44:36 +0100 |
commit | d16c6375fe39deaafd70b151e496f5e15fd7b29c (patch) | |
tree | 8450be747932a05c53b389ad5c9420fb3e6672e6 /synapse/handlers/register.py | |
parent | update changelog (diff) | |
download | synapse-d16c6375fe39deaafd70b151e496f5e15fd7b29c.tar.xz |
Limit displaynames and avatar URLs
These end up in join events everywhere, so let's limit them. Fixes #5079
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r-- | synapse/handlers/register.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index e83ee24f10..9a388ea013 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -531,6 +531,8 @@ class RegistrationHandler(BaseHandler): A tuple of (user_id, access_token). Raises: RegistrationError if there was a problem registering. + + NB this is only used in tests. TODO: move it to the test package! """ if localpart is None: raise SynapseError(400, "Request must include user id") |