forked from orbit-oss/flask
Merge branch '1.0.x'
This commit is contained in:
commit
afd6250bab
4 changed files with 6 additions and 2 deletions
|
|
@ -610,7 +610,7 @@ def send_file(
|
|||
"filename": unicodedata.normalize("NFKD", attachment_filename).encode(
|
||||
"ascii", "ignore"
|
||||
),
|
||||
"filename*": "UTF-8''%s" % url_quote(attachment_filename),
|
||||
'filename*': "UTF-8''%s" % url_quote(attachment_filename, safe=b""),
|
||||
}
|
||||
else:
|
||||
filenames = {"filename": attachment_filename}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue