commit | 0b6f0d88102f86121d67cb10232f89838ee907d5 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Tue Aug 19 03:49:34 2003 +0000 |
committer | Barry Warsaw <barry@python.org> | Tue Aug 19 03:49:34 2003 +0000 |
tree | 303901bfdd9a48b3c2a484df5a6688e460fe995a | |
parent | 1a3abcb648565b1c521c41d49ecd7c93a45c6d97 [diff] [blame] |
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 2b8b94f..a409e16 100644 --- a/Lib/email/Utils.py +++ b/Lib/email/Utils.py
@@ -280,7 +280,7 @@ 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)