Author rcoyner
Recipients barry, msapiro, rcoyner
Date 2010-03-04.07:21:43
SpamBayes Score 0.00967313
Marked as misclassified No
Message-id <1267687306.58.0.752822137964.issue5277@psf.upfronthosting.co.za>
In-reply-to
Content
Okay, bug confirmed:

>>> m = email.message_from_string('Content-Disposition: inline; filename*0="foo \\"test"; filename*1="\\"bar"')
>>> m.get_filename()
'foo "test"; filename*1=""bar'


And here is the result with the patch applied:

>>> m = email.message_from_string('Content-Disposition: inline; filename*0="foo \\"test"; filename*1="\\"bar"')
>>> m.get_filename()
'foo "test"bar'


Attached a patch. Unit test included.
History
Date User Action Args
2010-03-04 07:21:46rcoynersetrecipients: + rcoyner, barry, msapiro
2010-03-04 07:21:46rcoynersetmessageid: <1267687306.58.0.752822137964.issue5277@psf.upfronthosting.co.za>
2010-03-04 07:21:45rcoynerlinkissue5277 messages
2010-03-04 07:21:44rcoynercreate