From 06507c1b03847fa5b0e23fdd08e8091c960f6295 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 26 Sep 2007 09:26:26 +0000 Subject: [PATCH] ignore roster pushes from unknown sender. fixes #3098 --- src/common/xmpp/roster.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/xmpp/roster.py b/src/common/xmpp/roster.py index 86c9e8438..fd882f5ab 100644 --- a/src/common/xmpp/roster.py +++ b/src/common/xmpp/roster.py @@ -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':