Opened 20 years ago
Closed 19 years ago
#2460 closed defect (bug) (fixed)
wp-mail.php: quoted printable encoding not decoding
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.2 | Priority: | normal |
| Severity: | normal | Version: | 2.0.1 |
| Component: | General | Keywords: | wp-mail.php quoted printable has-patch |
| Focuses: | Cc: |
Description
When sending an email in this format:
Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable =E4=F6=FC =C4=D6=DC =DF
the message body will not be decoded. It should use the PHP function quoted_printable_decode(),
since many mobile phones can only send emails in this encoding.
Attachments (2)
Change History (11)
#4
@
20 years ago
- Keywords has-patch added
- Milestone set to 2.1
Updated the already present patch to the current version of trunk.
#7
@
19 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Note that function stripos is only available in PHP 5. You might want to change the condition on line 121 to strpos(strtolower($content_transfer_encoding), "quoted-printable") to ensure compatibility with providers still using PHP 4.
Also I think MIME headers are case insensitive too so the explode on line 116 might not always work.
And I'm still having the problem I posted in #3717.
#8
@
19 years ago
http://trac.wordpress.org/changeset/5187
stripos() was added in for compatibility already.
I think this diff in attachment could fix it. (but don't know at which position exactly the conversion should take place)