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 ajaksu2
Recipients ajaksu2, barry
Date 2008-04-23.17:00:13
SpamBayes Score 0.0041595995
Marked as misclassified No
Message-id <1208970017.45.0.457761108735.issue2676@psf.upfronthosting.co.za>
In-reply-to
Content
[Reported by Alberto Casado Martín [1]]

Message.get_content_type() hangs when very large values are split by the
regex:
ctype = paramre.split(value)[0].lower().strip() #line 439

paramre comes from line 26:
paramre = re.compile(r'\s*;\s*')

Unless the full fledged parser cited in the comment before line 26 is in
the works, I suggest splitting the string by ";" to get exactly the same
behavior in a more reliable way.


[1] http://mail.python.org/pipermail/python-dev/2008-April/078840.html
History
Date User Action Args
2008-04-23 17:00:17ajaksu2setspambayes_score: 0.0041596 -> 0.0041595995
recipients: + ajaksu2, barry
2008-04-23 17:00:17ajaksu2setspambayes_score: 0.0041596 -> 0.0041596
messageid: <1208970017.45.0.457761108735.issue2676@psf.upfronthosting.co.za>
2008-04-23 17:00:15ajaksu2linkissue2676 messages
2008-04-23 17:00:14ajaksu2create