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"
This commit is contained in:
Barry Warsaw 2003-08-19 03:49:34 +00:00
parent 1a3abcb648
commit 0b6f0d8810
1 changed files with 1 additions and 1 deletions

View File

@ -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)