mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
Fix closes Issue12529 - cgi.parse_header failure on double quotes and
semicolons. Patch by Ben Darnell and Petri Lehtinen.
This commit is contained in:
parent
1e87da16ea
commit
59a06d412d
2 changed files with 4 additions and 1 deletions
|
@ -377,6 +377,9 @@ this is the content of the fake file
|
|||
self.assertEqual(
|
||||
cgi.parse_header('attachment; filename="strange;name";size=123;'),
|
||||
("attachment", {"filename": "strange;name", "size": "123"}))
|
||||
self.assertEqual(
|
||||
cgi.parse_header('form-data; name="files"; filename="fo\\"o;bar"'),
|
||||
("form-data", {"name": "files", "filename": 'fo"o;bar'}))
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue