[wp-trac] [WordPress Trac] #28473: wp_mail incorrectly parses multiline From header

WordPress Trac noreply at wordpress.org
Fri Jun 6 19:56:58 UTC 2014

#28473: wp_mail incorrectly parses multiline From header
 Reporter:  arty.name     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Mail          |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:

Comment (by arty.name):

 I have attached a patch which might fix the problem by improving how
 wordpress parses headers. First of all, it treats multiline headers as one
 (continuation of header can be easily detected by first character being a
 whitespace). Second, if there's a `mb_decode_mimeheader` present, it is
 used to parse the `$from_name`.

Ticket URL: <https://core.trac.wordpress.org/ticket/28473#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list