Ticket #34 (testing defect: fixed)

Opened 4 years ago

Last modified 2 months ago

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

Changed 3 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?

Changed 2 months ago by mortonda@…

  • owner changed from rjl to mortonda@…
  • status changed from new to accepted
  • milestone changed from 1.1.0 to 1.0.3

Changed 2 months ago by mortonda@…

  • status changed from accepted to testing
  • resolution set to fixed

[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.