diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-12-18 18:25:38 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-12-18 18:25:38 (GMT) |
commit | 63563cdf9d3afe0bdffaece7b92b0a56d2360397 (patch) | |
tree | 6f3004bbefd6bd75e9f841307668676fb075aa51 /Misc | |
parent | 2b37ce7f30b94fc5ec8adb042554f3cc320f7af2 (diff) | |
download | cpython-63563cdf9d3afe0bdffaece7b92b0a56d2360397.zip cpython-63563cdf9d3afe0bdffaece7b92b0a56d2360397.tar.gz cpython-63563cdf9d3afe0bdffaece7b92b0a56d2360397.tar.bz2 |
#9286: Fix the rfc822 parser to preserve whitespace in address local part.
Such addresses are not RFC compliant except under the 'obsolete syntax'
rules, but before this fix the whitespace was dropped from the input,
concatenating the pieces. That breaks one of the principles of the
email package, that of preserving the input as much as possible.
It also denies the application program the opportunity to apply its
own heuristics to interpretation of such non-compliant addresses.
It is possible users of the email package were depending on the local
part always being a single token, so this fix will not be backported.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -23,6 +23,9 @@ Core and Builtins Library ------- +- Issue #9286: email.utils.parseaddr no longer concatenates blank-separated + words in the local part of email addresses, thereby preserving the input. + - Issue #6791: Limit header line length (to 65535 bytes) in http.client and http.server, to avoid denial of services from the other party. |