diff options
author | ReidAnderson <rbarryanderson@gmail.com> | 2019-05-20 05:20:08 -0500 |
---|---|---|
committer | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-05-20 11:20:08 +0100 |
commit | 3787133c9e3fcf0e9b85700418bf03c48ec86ab3 (patch) | |
tree | 5142e89481b5cb89354337cb2f70e0ad7a72842f /synapse/api | |
parent | fix mapping of return values for get_or_register_3pid_guest (#5177) (diff) | |
download | synapse-3787133c9e3fcf0e9b85700418bf03c48ec86ab3.tar.xz |
Limit UserIds to a length that fits in a state key (#5198)
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/constants.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py index 8547a63535..c7bf95b426 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py @@ -23,6 +23,9 @@ MAX_DEPTH = 2**63 - 1 # the maximum length for a room alias is 255 characters MAX_ALIAS_LENGTH = 255 +# the maximum length for a user id is 255 characters +MAX_USERID_LENGTH = 255 + class Membership(object): |