diff options
author | pgjones <philip.graham.jones@googlemail.com> | 2023-04-09 12:32:16 +0100 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2023-04-10 13:09:05 -0700 |
commit | 082e0e5b9c01fa3178ac0153413f082616f10914 (patch) | |
tree | 7512b58b448c952feeb28cc73796967fde0ba64f /CHANGES.rst | |
parent | 6425dbfd0d33a9ed198391838438a0659cfb3368 (diff) | |
download | werkzeug-082e0e5b9c01fa3178ac0153413f082616f10914.tar.gz |
Correctly implement multipart parsing for empty fields
According to RFC2046
body-part := MIME-part-headers [CRLF *OCTET]
Meaning there should only be a blank line if there is are body octets,
hence if the field is empty it should not be present. The previous
implementation assumed the blacnk line would always be present.
This fixes both the decoder and encoder to ensure that empty fields
are correctly decoded and encoded.
Diffstat (limited to 'CHANGES.rst')
-rw-r--r-- | CHANGES.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 87dfed5a..30fe8ae2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -99,6 +99,7 @@ Unreleased - ``secure_filename`` looks for more Windows reserved file names. :pr:`2622` - Update type annotation for ``best_match`` to make ``default`` parameter clearer. :issue:`2625` +- Multipart parser handles empty fields correctly. :issue:`2632` Version 2.2.3 |