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 bpoaugust
Recipients barry, bpoaugust, r.david.murray
Date 2016-12-12.12:54:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481547297.88.0.91240101349.issue28945@psf.upfronthosting.co.za>
In-reply-to
Content
get_boundary calls get_param('boundary') which unquotes the value.
It then calls utils.collapse_rfc2231_value which also calls unquote.

This causes problems for boundaries that have two sets of quotes.
For example, I have seen the following in the wild:

Content-Type: multipart/mixed; boundary="<<001-3e1dcd5a-119e>>"

Both "" and <> are treated as quotes by unquote.

The result is that both "< and >" are stripped off.
This means that the boundaries no longer match.
History
Date User Action Args
2016-12-12 12:54:57bpoaugustsetrecipients: + bpoaugust, barry, r.david.murray
2016-12-12 12:54:57bpoaugustsetmessageid: <1481547297.88.0.91240101349.issue28945@psf.upfronthosting.co.za>
2016-12-12 12:54:57bpoaugustlinkissue28945 messages
2016-12-12 12:54:57bpoaugustcreate