changeset ef758321c654 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=ef758321c654 description: check that pubsub messages have a Atom namespace before presenting them to the user. Fixes #5757
diffstat:
src/common/pep.py | 2 +- src/common/xmpp/protocol.py | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 75c7b21c6bed -r ef758321c654 src/common/pep.py --- a/src/common/pep.py Tue May 25 09:01:06 2010 +0200 +++ b/src/common/pep.py Tue May 25 09:33:59 2010 +0200 @@ -544,7 +544,7 @@ 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... diff -r 75c7b21c6bed -r ef758321c654 src/common/xmpp/protocol.py --- a/src/common/xmpp/protocol.py Tue May 25 09:01:06 2010 +0200 +++ b/src/common/xmpp/protocol.py Tue May 25 09:33:59 2010 +0200 @@ -28,6 +28,7 @@ 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'