Commit f8f99f33 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Bookmarks: Catch some invalid room jids

Fixes #111
parent 9c9cc108
......@@ -140,6 +140,12 @@ class Bookmarks(BaseModule):
error)
continue
if jid.localpart is None or jid.resource is not None:
self._log.warning('Invalid JID: "%s", %s',
conf.getAttr('jid'),
error)
continue
autojoin = self._parse_autojoin(conf.getAttr('autojoin'))
nick = self._parse_nickname(conf.getTagData('nick'))
name = conf.getAttr('name') or None
......@@ -170,6 +176,12 @@ class Bookmarks(BaseModule):
error)
return None
if jid.localpart is None or jid.resource is not None:
self._log.warning('Invalid JID: "%s", %s',
item.getAttr('id'),
error)
return None
autojoin = self._parse_autojoin(conference.getAttr('autojoin'))
nick = self._parse_nickname(conference.getTagData('nick'))
name = conference.getAttr('name') or None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment