Skip to content
Myr

Merge branch '1.0.x'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parents 5a04590, b9c2267 · Browse files · 4 files+6 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+6 added−2 removed

  • tests:+2 added−0 removed
  • other:+4 added−2 removed

4 files+6 added−2 removed

modified:src/flask/helpers.py+1 added-1 removed
608 unmodified lines
609 filenames = {610 "filename": unicodedata.normalize("NFKD", attachment_filename).encode(611 "ascii", "ignore"612 ),613 "filename*": "UTF-8''%s" % url_quote(attachment_filename),613 'filename*': "UTF-8''%s" % url_quote(attachment_filename, safe=b""),614 }615 else:616 filenames = {"filename": attachment_filename}617
504 unmodified lines
modified:tests/test_helpers.py+2 added
695 unmodified lines
696 ),697 (u"Vögel.txt", "Vogel.txt", "V%C3%B6gel.txt"),698 # Native string not marked as Unicode on Python 2699 ("tést.txt", "test.txt", "t%C3%A9st.txt"),700 # ":/" are not safe in filename* value701 (u"те:/ст", '":/"', "%D1%82%D0%B5%3A%2F%D1%81%D1%82"),702 ),703 )704 def test_attachment_filename_encoding(self, filename, ascii, utf8):705 rv = flask.send_file(
339 unmodified lines
modified:CHANGES.rst+2 added
90 unmodified lines
9192- The key information for ``BadRequestKeyError`` is no longer cleared93 outside debug mode, so error handlers can still access it. This94 requires upgrading to Werkzeug 0.15.5. :issue:`3249`95- ``send_file`` url quotes the ":" and "/" characters for more96 compatible UTF-8 filename support in some browsers. :issue:`3074`979899Version 1.0.3100-------------
881 unmodified lines
modified:README.rst+1 added-1 removed
69 unmodified lines
70* Documentation: http://flask.pocoo.org/docs/71* Releases: https://pypi.org/project/Flask/72* Code: https://github.com/pallets/flask73* Issue tracker: https://github.com/pallets/flask/issues74* Test status: https://dev.azure.com/pallets/pallets/_build?definitionId=274* Test status: https://dev.azure.com/pallets/flask/_build75* Official chat: https://discord.gg/t6rrQZH7677.. _WSGI: https://wsgi.readthedocs.io78.. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/
2 unmodified lines