This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients benjamin.peterson, berker.peksag, dstufft, r.david.murray
Date 2015-03-29.16:42:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427647373.46.0.972476876487.issue23801@psf.upfronthosting.co.za>
In-reply-to
Content
The code you are modifying looks completely wrong-headed to me.  Unfortunately I don't have time to rewrite the cgi module right now :).  Given that, your fix looks fine: the first part of a multipart (up to the first inner boundary) is the 'preamble', which can contain pretty much arbitrary content, and in the context of cgi should indeed be completely ignored.  

Benjamin's suggested modification has the if logic reversed.
History
Date User Action Args
2015-03-29 16:42:53r.david.murraysetrecipients: + r.david.murray, benjamin.peterson, berker.peksag, dstufft
2015-03-29 16:42:53r.david.murraysetmessageid: <1427647373.46.0.972476876487.issue23801@psf.upfronthosting.co.za>
2015-03-29 16:42:53r.david.murraylinkissue23801 messages
2015-03-29 16:42:53r.david.murraycreate