Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
e81b1dae
Commit
e81b1dae
authored
May 16, 2022
by
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
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nbxmpp/structs.py
View file @
e81b1dae
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment