]> granicus.if.org Git - python/commit
SF bug #1582282; decode_header() incorrectly splits not-conformant RFC
authorBarry Warsaw <barry@python.org>
Wed, 14 Mar 2007 04:29:06 +0000 (04:29 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 14 Mar 2007 04:29:06 +0000 (04:29 +0000)
commit924d148b9826bd64fbcce046df6f5d967cf37bbe
tree5ebf076e10e78cacd1584a51ea58c9254e3381b4
parent2a98ff8eedda81a222b9df63cc29a91ca23cfb54
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