summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-08-19 03:49:34 (GMT)
committerBarry Warsaw <barry@python.org>2003-08-19 03:49:34 (GMT)
commit0b6f0d88102f86121d67cb10232f89838ee907d5 (patch)
tree303901bfdd9a48b3c2a484df5a6688e460fe995a /Lib/email
parent1a3abcb648565b1c521c41d49ecd7c93a45c6d97 (diff)
downloadcpython-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.py2
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)