mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 12:34:54 -04:00
Allow non-ascii filenames for attachments
This commit is contained in:
parent
efdaa5dd55
commit
e85c7873dc
3 changed files with 17 additions and 8 deletions
|
@ -38,6 +38,8 @@ def random_string_with_symbols(length):
|
|||
def is_ascii(s):
|
||||
try:
|
||||
s.encode("ascii")
|
||||
except UnicodeEncodeError:
|
||||
return False
|
||||
except UnicodeDecodeError:
|
||||
return False
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue