check that pubsub messages have a Atom namespace before presenting them to the user. Fixes #5757

This commit is contained in:
Yann Leboulanger 2010-05-25 09:33:59 +02:00
parent ced4db430c
commit f919c10742
2 changed files with 2 additions and 1 deletions

View file

@ -544,7 +544,7 @@ class ConnectionPEP(object):
items = event_tag.getTag('items')
if items:
for item in items.getTags('item'):
entry = item.getTag('entry')
entry = item.getTag('entry', namespace=xmpp.NS_ATOM)
if entry:
# for each entry in feed (there shouldn't be more than one,
# but to be sure...

View file

@ -28,6 +28,7 @@ NS_ADDRESS ='http://jabber.org/protocol/address'
NS_AGENTS ='jabber:iq:agents'
NS_AMP ='http://jabber.org/protocol/amp'
NS_AMP_ERRORS =NS_AMP+'#errors'
NS_ATOM ='http://www.w3.org/2005/Atom'
NS_AUTH ='jabber:iq:auth'
NS_AVATAR ='http://www.xmpp.org/extensions/xep-0084.html#ns-metadata'
NS_BIND ='urn:ietf:params:xml:ns:xmpp-bind'