Opened 16 years ago

Last modified 12 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


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 15 years ago by dmorton

  • Milestone changed from 1.0.0 RC6 to 1.1.0

Confirmed still broken. Of course, how does one properly view a message with bad headers or bad MIME structure?

comment:2 Changed 12 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 12 years ago by mortonda@…

  • Resolution set to fixed
  • Status changed from accepted to testing

[1339],[1340] just make the output loop over the values. It happens to do the right thing for the normal case. Also, #517 changed the location of the impact of this ticket.

Note: See TracTickets for help on using tickets.