Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: 852b29d8 by lovetox at 2020-04-11T16:08:56+02:00 MAM: Check for first and last element in IQ result
- - - - -
1 changed file:
- nbxmpp/modules/mam.py
Changes:
===================================== nbxmpp/modules/mam.py ===================================== @@ -119,6 +119,12 @@ class MAM(BaseModule): 'rsm set missing')
complete = fin.getAttr('complete') == 'true' + if not complete: + if rsm.first is None or rsm.last is None: + return raise_error(self._log.warning, + stanza, + 'stanza-malformed', + 'missing first or last element')
return MAMQueryData(jid=jid, complete=complete,
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/852b29d8be3816ea8dbf8c54e...