summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAbhilash Raj <maxking@users.noreply.github.com>2019-06-05 16:56:33 (GMT)
committerBarry Warsaw <barry@python.org>2019-06-05 16:56:33 (GMT)
commit66c4f3f38b867d8329b28c032bb907fd1a2f22d2 (patch)
treebed2fe319cf50ffbc6d2ac2c89d5f167df4e9d48 /Misc
parent142566c028720934325f0b7fe28680afd046e00f (diff)
downloadcpython-66c4f3f38b867d8329b28c032bb907fd1a2f22d2.zip
cpython-66c4f3f38b867d8329b28c032bb907fd1a2f22d2.tar.gz
cpython-66c4f3f38b867d8329b28c032bb907fd1a2f22d2.tar.bz2
bpo-21315: Fix parsing of encoded words with missing leading ws. (#13425)
* bpo-21315: Fix parsing of encoded words with missing leading ws. Because of missing leading whitespace, encoded word would get parsed as unstructured token. This patch fixes that by looking for encoded words when splitting tokens with whitespace. Missing trailing whitespace around encoded word now register a defect instead. Original patch suggestion by David R. Murray on bpo-21315.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-05-19-10-48-46.bpo-21315.PgXVqF.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-05-19-10-48-46.bpo-21315.PgXVqF.rst b/Misc/NEWS.d/next/Library/2019-05-19-10-48-46.bpo-21315.PgXVqF.rst
new file mode 100644
index 0000000..dd0dd7f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-05-19-10-48-46.bpo-21315.PgXVqF.rst
@@ -0,0 +1,4 @@
+Email headers containing RFC2047 encoded words are parsed despite the missing
+whitespace, and a defect registered. Also missing trailing whitespace after
+encoded words is now registered as a defect.
+