Message100377
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. |
|
Date |
User |
Action |
Args |
2010-03-04 07:21:46 | rcoyner | set | recipients:
+ rcoyner, barry, msapiro |
2010-03-04 07:21:46 | rcoyner | set | messageid: <1267687306.58.0.752822137964.issue5277@psf.upfronthosting.co.za> |
2010-03-04 07:21:45 | rcoyner | link | issue5277 messages |
2010-03-04 07:21:44 | rcoyner | create | |
|