Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
20ed3922 by Philipp Hörist at 2026-08-13T22:33:14+02:00
imprv: Always validate when decoding base64

- - - - -


1 changed file:

- nbxmpp/util.py


Changes:

=====================================
nbxmpp/util.py
=====================================
@@ -61,7 +61,7 @@ def b64decode(data: str | bytes) -> bytes:
     if isinstance(data, str):
         data = data.encode()
 
-    return base64.b64decode(data)
+    return base64.b64decode(data, validate=True)
 
 
 def b64encode(data: str | bytes) -> str:



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/20ed39222d00036a3f2bc3f0d3fa729f07063df4

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/20ed39222d00036a3f2bc3f0d3fa729f07063df4
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]

Reply via email to