From: Barry Warsaw Date: Tue, 19 Aug 2003 03:49:34 +0000 (+0000) Subject: decode_rfc2231(): We need to urllib.unquote() the value even if the X-Git-Tag: v2.4a1~1721 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b6f0d88102f86121d67cb10232f89838ee907d5;p=python decode_rfc2231(): We need to urllib.unquote() the value even if the charset and language fields are not present, e.g. as in: title*0="This%20is%20encoded" --- diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py index 2b8b94fec4..a409e16e91 100644 --- a/Lib/email/Utils.py +++ b/Lib/email/Utils.py @@ -280,7 +280,7 @@ def decode_rfc2231(s): import urllib parts = s.split("'", 2) if len(parts) == 1: - return None, None, s + return None, None, urllib.unquote(s) charset, language, s = parts return charset, language, urllib.unquote(s)