mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
1a3abcb648
commit
0b6f0d8810
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue