Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
06507c1b
Commit
06507c1b
authored
17 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
ignore roster pushes from unknown sender. fixes #3098
parent
96e6457c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/xmpp/roster.py
+4
-0
4 additions, 0 deletions
src/common/xmpp/roster.py
with
4 additions
and
0 deletions
src/common/xmpp/roster.py
+
4
−
0
View file @
06507c1b
...
...
@@ -64,6 +64,10 @@ class Roster(PlugIn):
def
RosterIqHandler
(
self
,
dis
,
stanza
):
"""
Subscription tracker. Used internally for setting items state in
internal roster representation.
"""
sender
=
stanza
.
getAttr
(
'
from
'
)
if
not
sender
==
None
:
and
not
sender
.
bareMatch
(
self
.
_owner
.
User
+
'
@
'
+
self
.
_owner
.
Server
):
return
for
item
in
stanza
.
getTag
(
'
query
'
).
getTags
(
'
item
'
):
jid
=
item
.
getAttr
(
'
jid
'
)
if
item
.
getAttr
(
'
subscription
'
)
==
'
remove
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment