]> granicus.if.org Git - python/commit
Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813)
authorAbhilash Raj <maxking@users.noreply.github.com>
Wed, 17 Jul 2019 16:48:52 +0000 (09:48 -0700)
committerBarry Warsaw <barry@python.org>
Wed, 17 Jul 2019 16:48:52 +0000 (09:48 -0700)
commit719a062bcb7b08a56e6576dcd75f4244e6053209
treef0a504456d20cbda6b1cc888e158e50652e7cde4
parenta4a994bd3e619cbaff97610a1cee8ffa87c672f5
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.
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]