bpo-27777: fix cgi.FieldStorage parsing for body with Content-Length and no Content-Disposition by ar45 · Pull Request #21457 · python/cpython

added 4 commits

July 13, 2020 00:55
…ent-Length and no Content-Disposition

- If content length is present, read at most len bytes.
- When reading `read_lines_to_eof` use `read` instead of `readline`.
- Use `self.__write` even when content length is present and > 1000.
Renamed `test_fieldstorage_readline` to `test_fieldstorage_read`
and test `read` instead of `readline` since we use `read`.
Added mention of FieldStorage

@ar45 ar45 changed the title Issue27777 bpo-27777

Jul 13, 2020

@ar45 ar45 mentioned this pull request

Jul 13, 2020

@merwok merwok changed the title bpo-27777 bpo-27777: fix cgi.FieldStorage parsing for body with Content-Length and no Content-Disposition

Jul 14, 2020

cjwatson added a commit to cjwatson/zope.publisher that referenced this pull request

Aug 4, 2020

@cjwatson

@rr rr mannequin mentioned this pull request

Apr 11, 2022