Ryan Coyner <[email protected]> added the comment:
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.
----------
nosy: +rcoyner
Added file: http://bugs.python.org/file16426/issue5277.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5277>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com