]> 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:32:31 +0000 (10:32 -0700)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2019 17:32:31 +0000 (10:32 -0700)
commit80f74ce83b6757526ee6927fe89897f3460f25f9
treef7e776a0f0ec2a13fddd6287f57f8cc4f722071a
parent391511ccaaf0050970dfbe95bf2df1bcf6c33440
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]