Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e6dd81fc by Philipp Hörist at 2024-09-19T11:13:02+02:00
fix: Parse xmpp IRI correctly
- - - - -
1 changed file:
- gajim/gtk/application.py
Changes:
=====================================
gajim/gtk/application.py
=====================================
@@ -273,16 +273,15 @@ def _open_uris(self, uris: list[str]) -> None:
app.log('uri_handler').info('open %s', uri)
if not uri.startswith('xmpp:'):
continue
- # remove xmpp:
- uri = uri[5:]
+
try:
- jid, cmd = uri.split('?')
+ iri, cmd = uri.split('?')
except ValueError:
# No query argument
- jid, cmd = uri, 'message'
+ iri, cmd = uri, 'message'
try:
- jid = JID.from_string(jid)
+ jid = JID.from_iri(iri)
except InvalidJid as error:
app.log('uri_handler').warning('Invalid JID %s: %s', uri,
error)
continue
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/e6dd81fc63a7f1188c0b2649ce3cade173341793
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/e6dd81fc63a7f1188c0b2649ce3cade173341793
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]