Mercurial > libervia-backend
diff sat/core/xmpp.py @ 2979:f44a95f566d2
core, plugin XEP-0045: fix crashes when changing URIs:
When adding missing URIs in message, the "children" property was used instead of elements(). "children" not only return elements, and this was causing crashes.
This may fix bug 294
rel 294
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 30 Jun 2019 15:52:30 +0200 |
parents | d1fcb8e9aced |
children | 97a1faca8f58 |
line wrap: on
line diff
--- a/sat/core/xmpp.py Sun Jun 30 15:52:27 2019 +0200 +++ b/sat/core/xmpp.py Sun Jun 30 15:52:30 2019 +0200 @@ -969,7 +969,7 @@ if message_elt.uri is None: # wokkel element parsing strip out root namespace message_elt.defaultUri = message_elt.uri = C.NS_CLIENT - for c in message_elt.children: + for c in message_elt.elements(): if c.uri is None: c.uri == C.NS_CLIENT elif message_elt.uri != C.NS_CLIENT: