[wp-trac] [WordPress Trac] #28473: wp_mail incorrectly parses multiline From header
WordPress Trac
noreply at wordpress.org
Fri Jun 6 19:08:33 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 | Keywords:
Focuses: |
--------------------------+-----------------------------
`wp_mail` tries to parse `From:` header when it is contained in headers.
It fails when the header is multiline. Multiline headers are common when
non-ascii characters are used and quoted-printable escaping kicks in.
Example input:
{{{
From:
=?UTF-8?Q?=D0=92=D0=B7=D0=B3=D0=BB=D1=8F=D0=B4=20=D0=BD=D0=B0=20=D0=BE?=
=?UTF-8?Q?=D0=BA=D1=80=D1=83=D0=B6=D0=B0=D1=8E=D1=89=D0=B8=D0=B9=20=D0=BC?=
=?UTF-8?Q?=D0=B8=D1=80?= <live-positive at yandex.ru>
}}}
Parsed email in `$from_email`:
{{{
=?UTF-8?Q?=D0=92=D0=B7=D0=B3=D0=BB=D1=8F=D0=B4=20=D0=BD=D0=B0=20=D0=BE?=
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28473>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list