From 0b6f0d88102f86121d67cb10232f89838ee907d5 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 19 Aug 2003 03:49:34 +0000 Subject: [PATCH] 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" --- Lib/email/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.50.1