]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug #1582282; decode_header() incorrectly splits not-conformant RFC
authorBarry Warsaw <barry@python.org>
Wed, 14 Mar 2007 04:59:50 +0000 (04:59 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 14 Mar 2007 04:59:50 +0000 (04:59 +0000)
commitdcd24ae5015bb94ef83015a4f584e5b8f173e999
treef0de750ea1f48bb6de48669130272296391f04ad
parent47c52a8b60444e4f0aae9c0e91794d214b68bd45
SF bug #1582282; decode_header() incorrectly splits not-conformant RFC
2047-like headers where there is no whitespace between encoded words.  This
fix changes the matching regexp to include a trailing lookahead assertion that
the closing ?= must be followed by whitespace, newline, or end-of-string.
This also changes the regexp to add the MULTILINE flag.
Lib/email/header.py
Lib/email/test/test_email.py
Lib/email/test/test_email_renamed.py