• Abhilash Raj's avatar
    bpo-21315: Fix parsing of encoded words with missing leading ws. (#13425) · 66c4f3f3
    Abhilash Raj authored
    * 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.
    66c4f3f3
2019-05-19-10-48-46.bpo-21315.PgXVqF.rst 200 Bytes