[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

R. David Murray report at bugs.python.org
Thu Apr 11 21:53:36 CEST 2013


R. David Murray added the comment:

It turns out the new header parsing code also missed this error recovery.  Or, rather, it recovers from it by completely ignoring the parameter with the bad syntax. 

I haven't worked out a solution that does more useful error recovery yet, but I'm posting an updated patch with tests for the new parser and something that may (or may not!) be heading in the direction of a fix, in case anyone else wants to work on it before I get back to it.

----------
Added file: http://bugs.python.org/file29781/rfc2231_issue17369_in_progress.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17369>
_______________________________________


More information about the Python-bugs-list mailing list