diff options
author | Barry Warsaw <barry@python.org> | 2003-08-19 03:49:34 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-08-19 03:49:34 (GMT) |
commit | 0b6f0d88102f86121d67cb10232f89838ee907d5 (patch) | |
tree | 303901bfdd9a48b3c2a484df5a6688e460fe995a /Lib/email | |
parent | 1a3abcb648565b1c521c41d49ecd7c93a45c6d97 (diff) | |
download | cpython-0b6f0d88102f86121d67cb10232f89838ee907d5.zip cpython-0b6f0d88102f86121d67cb10232f89838ee907d5.tar.gz cpython-0b6f0d88102f86121d67cb10232f89838ee907d5.tar.bz2 |
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"
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/Utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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) |