]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 17 Jul 2019 17:29:18 +0000 (10:29 -0700)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2019 17:29:18 +0000 (10:29 -0700)
commit635743355d9dbffdc9aa7a2cc8de1403fbdb8d9b
tree322ad65ab62dc80e5bb1ae7d5f44b8d8e8d94abe
parent6816ca30af7705db691343100e696ea3d8f447d5
Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)

This exception was caused because the input ended unexpectedly with only one
single quote instead of a pair with some value inside it.
(cherry picked from commit 719a062bcb7b08a56e6576dcd75f4244e6053209)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
Lib/email/_header_value_parser.py
Lib/test/test_email/test__header_value_parser.py
Misc/NEWS.d/next/Library/2019-07-17-06-54-43.bpo-37491.op0aMs.rst [new file with mode: 0644]