Ticket #34 (testing defect: fixed)
Better handling for broken MIME structure
| Reported by: | rjl | Owned by: | mortonda@… |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.3 |
| Component: | PHP scripts | Version: | 1.0.0 RC5 |
| Severity: | normal | Keywords: | mime structure display_parts mime.php |
| Cc: |
Description
The display_parts() function in mime.php tries its best to render the MIME structure of the e-mail message it's passed, but in some pathological cases the MIME structure itself is broken, and cannot be properly parsed. This results in errors, such as:
Warning: htmlentities() expects parameter 1 to be string
This can happen, for instance, when there are multiple "To:" headers, such that $structure->headers["to"] is seen as an array rather than a simple string.
Change History
Note: See
TracTickets for help on using
tickets.

