Commit e81b1dae authored by Philipp Hörist's avatar Philipp Hörist
Browse files

fix: Roster: Raise exception if a full jid is found

parent 48d6a9b0
Pipeline #9894 passed with stages
in 56 seconds
......@@ -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,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment