Opened 15 years ago
Last modified 11 years ago
#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 (3)
comment:1 Changed 14 years ago by dmorton
- Milestone changed from 1.0.0 RC6 to 1.1.0
comment:2 Changed 11 years ago by mortonda@…
- Milestone changed from 1.1.0 to 1.0.3
- Owner changed from rjl to mortonda@…
- Status changed from new to accepted
comment:3 Changed 11 years ago by mortonda@…
- Resolution set to fixed
- Status changed from accepted to testing
Note: See
TracTickets for help on using
tickets.
Confirmed still broken. Of course, how does one properly view a message with bad headers or bad MIME structure?