Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
fe7943fb by cal0pteryx at 2026-02-24T19:23:20+01:00
cfix: Link preview: Fix accepted media types for data URIs
- - - - -
1 changed file:
- gajim/common/modules/message_util.py
Changes:
=====================================
gajim/common/modules/message_util.py
=====================================
@@ -268,7 +268,7 @@ def _parse() -> tuple[str, bytes]:
if not image_bytes:
raise ValueError
- if not datauri.media_type not in ("image/png", "image/jpeg"):
+ if datauri.media_type not in ("image/png", "image/jpeg", "image/webp"):
raise ValueError
if len(image_bytes) > 50_000:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/fe7943fbe11319b928d137251da2854ae6dd17d4
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/fe7943fbe11319b928d137251da2854ae6dd17d4
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]