Allow non-ascii filenames for attachments
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user