Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
e81b1dae
by lovetox at 2022-05-16T18:17:51+02:00
1 changed file:
Changes:
| ... | ... | @@ -378,6 +378,9 @@ class RosterItem: |
| 378 | 378 | raise Exception('jid attribute missing')
|
| 379 | 379 | |
| 380 | 380 | jid = JID.from_string(jid)
|
| 381 | + if jid.is_full:
|
|
| 382 | + raise Exception('full jid in roster not allowed')
|
|
| 383 | + |
|
| 381 | 384 | groups = {group.getData() for group in node.getTags('group')}
|
| 382 | 385 | |
| 383 | 386 | return cls(jid=jid,
|