Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: e81b1dae by lovetox at 2022-05-16T18:17:51+02:00 fix: Roster: Raise exception if a full jid is found
- - - - -
1 changed file:
- nbxmpp/structs.py
Changes:
===================================== nbxmpp/structs.py ===================================== @@ -378,6 +378,9 @@ class RosterItem: raise Exception('jid attribute missing')
jid = JID.from_string(jid) + if jid.is_full: + raise Exception('full jid in roster not allowed') + groups = {group.getData() for group in node.getTags('group')}
return cls(jid=jid,
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/e81b1dae9f197ca3bc7ffee95...