[issue18167] cgi.FieldStorage fails to handle multipart/form-data when \r\n appears at end of 65535 bytes without other newlines

Chris AtLee report at bugs.python.org
Sat Jun 15 16:09:26 CEST 2013


Chris AtLee added the comment:

Thanks, your patch is definitely much simpler!

I was worried about the case where you have interrupted \r\n that appears in the middle of the content. But that case is handled by the next readline(), which returns a single \n.

One question about the tests you've attached - would it be better to be explicit about the line endings in check()? Do triple quoted strings in python always use \n for EOL regardless of the source code EOL format?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18167>
_______________________________________


More information about the Python-bugs-list mailing list