Author jonas.wagner
Recipients jonas.wagner
Date 2011-06-25.15:09:07
SpamBayes Score 1.79871e-06
Marked as misclassified No
Message-id <1309014548.2.0.906650270303.issue12411@psf.upfronthosting.co.za>
In-reply-to
Content
While writing tests for the cgi module I came across what looks like a conversion bug.

cgi.parse_multipart is comparing values it reads from a binary file like with a string literal:
line = fp.readline()
...
if line.startswith("--"):

This patch adds fixes the issue and adds test for it.
History
Date User Action Args
2011-06-25 15:09:08jonas.wagnersetrecipients: + jonas.wagner
2011-06-25 15:09:08jonas.wagnersetmessageid: <1309014548.2.0.906650270303.issue12411@psf.upfronthosting.co.za>
2011-06-25 15:09:07jonas.wagnerlinkissue12411 messages
2011-06-25 15:09:07jonas.wagnercreate