diff options
author | Abhilash Raj <maxking@users.noreply.github.com> | 2019-08-11 20:45:09 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-11 20:45:09 (GMT) |
commit | 09a1872a8007048dcdf825a476816c5e3498b8f8 (patch) | |
tree | 908c334d48e20b9ab0bd5ab84a339679add694ff /Misc | |
parent | 51aac15f6d525595e200e3580409c4b8656e8a96 (diff) | |
download | cpython-09a1872a8007048dcdf825a476816c5e3498b8f8.zip cpython-09a1872a8007048dcdf825a476816c5e3498b8f8.tar.gz cpython-09a1872a8007048dcdf825a476816c5e3498b8f8.tar.bz2 |
bpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-15044)
This should fix the IndexError trying to retrieve `DisplayName.display_name` and `DisplayName.value` when the `value` is basically an empty string.
https://bugs.python.org/issue32178
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-07-30-22-41-05.bpo-32178.X-IFLe.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-07-30-22-41-05.bpo-32178.X-IFLe.rst b/Misc/NEWS.d/next/Library/2019-07-30-22-41-05.bpo-32178.X-IFLe.rst new file mode 100644 index 0000000..5e7a2e9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-07-30-22-41-05.bpo-32178.X-IFLe.rst @@ -0,0 +1 @@ +Fix IndexError in :mod:`email` package when trying to parse invalid address fields starting with ``:``. |