mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Ignore invalid room IDs in allow rules
This commit is contained in:
parent
e9bee83b03
commit
3ba7291598
1 changed files with 4 additions and 2 deletions
|
@ -225,7 +225,9 @@ func attemptMakeJoinForRestrictedMembership(
|
|||
for _, allowed := range joinRules.Allow {
|
||||
// Skip types that we don't know about.
|
||||
if allowed.Type != gomatrixserverlib.MRoomMembership {
|
||||
logger.Infof("Skipping unknown join rule type %q", allowed.Type)
|
||||
continue
|
||||
}
|
||||
if _, _, err := gomatrixserverlib.SplitID('!', allowed.RoomID); err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue