Commit 0b6f0d88 authored by Barry Warsaw's avatar Barry Warsaw

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"
parent 1a3abcb6
...@@ -280,7 +280,7 @@ def decode_rfc2231(s): ...@@ -280,7 +280,7 @@ def decode_rfc2231(s):
import urllib import urllib
parts = s.split("'", 2) parts = s.split("'", 2)
if len(parts) == 1: if len(parts) == 1:
return None, None, s return None, None, urllib.unquote(s)
charset, language, s = parts charset, language, s = parts
return charset, language, urllib.unquote(s) return charset, language, urllib.unquote(s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment