• Barry Warsaw's avatar
    SF bug #1582282; decode_header() incorrectly splits not-conformant RFC · dcd24ae5
    Barry Warsaw yazdı
    2047-like headers where there is no whitespace between encoded words.  This
    fix changes the matching regexp to include a trailing lookahead assertion that
    the closing ?= must be followed by whitespace, newline, or end-of-string.
    This also changes the regexp to add the MULTILINE flag.
    dcd24ae5
header.py 21.2 KB