Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a2476a3c by Philipp Hörist at 2023-01-12T18:14:07+01:00
fix: Preview: Handle exceptions while decrypting
- - - - -
1 changed file:
- gajim/common/preview.py
Changes:
=====================================
gajim/common/preview.py
=====================================
@@ -535,7 +535,13 @@ def _on_finished(self, request: HTTPRequest) -> None:
if preview.is_aes_encrypted:
if preview.key is not None and preview.iv is not None:
- data = aes_decrypt(preview.key, preview.iv, data)
+ try:
+ data = aes_decrypt(preview.key, preview.iv, data)
+ except Exception as error:
+ log.exception('Decryption failed')
+ preview.info_message = _('Decryption failed')
+ preview.update_widget()
+ return
if preview.mime_type == 'application/octet-stream':
if preview.orig_path is not None:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a2476a3c82ced7ac7e8f96bf637a3d25…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/a2476a3c82ced7ac7e8f96bf637a3d25…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
7ae72c8d by Philipp Hörist at 2023-01-10T18:45:27+01:00
fix: HTTP: Parse uri with correct flags
- - - - -
1 changed file:
- nbxmpp/http.py
Changes:
=====================================
nbxmpp/http.py
=====================================
@@ -252,7 +252,7 @@ class HTTPRequest(GObject.GObject):
Gio.FileCreateFlags.REPLACE_DESTINATION,
self._cancellable)
- uri = GLib.Uri.parse(uri_string, GLib.UriFlags.HAS_PASSWORD)
+ uri = GLib.Uri.parse(uri_string, GLib.UriFlags(Soup.HTTP_URI_FLAGS))
self._message.set_uri(uri)
if self._request_body_data is not None:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/7ae72c8deb14f03de6d05076…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/7ae72c8deb14f03de6d05076…
You're receiving this email because of your account on dev.gajim.org.