Limit UserIds to a length that fits in a state key (#5198)

This commit is contained in:
ReidAnderson 2019-05-20 05:20:08 -05:00 committed by Richard van der Hoff
parent 291e1eea5e
commit 3787133c9e
4 changed files with 21 additions and 1 deletions

View file

@ -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):