Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
05e6c3b1 by wurstsalat at 2025-10-25T12:16:06+02:00
fix: Windows: Add full-width question mark to blacklisted characters for file 
names

Fixes #11603

- - - - -


1 changed file:

- gajim/common/helpers.py


Changes:

=====================================
gajim/common/helpers.py
=====================================
@@ -80,7 +80,7 @@ def sanitize_filename(filename: str) -> str:
     Limit filename length to 50 chars on all systems
     '''
     if sys.platform == 'win32':
-        blacklist = ['\\', '/', ':', '*', '?', '"', '<', '>', '|', '\0']
+        blacklist = ['\\', '/', ':', '*', '?', '?', '"', '<', '>', '|', '\0']
         reserved_filenames = [
             'CON', 'PRN', 'AUX', 'NUL', 'COM1', 'COM2', 'COM3', 'COM4', 'COM5',
             'COM6', 'COM7', 'COM8', 'COM9', 'LPT1', 'LPT2', 'LPT3', 'LPT4',



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/05e6c3b16de6500cf8440655467dd8a6a4d8b8d8

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/05e6c3b16de6500cf8440655467dd8a6a4d8b8d8
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