#12584 closed defect (bug) (fixed)
Emails from WordPress Admin are html encoded
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Keywords: | has-patch commit | |
Focuses: | Cc: |
Description (last modified by )
When a comment form is filled out that contains characters that are candidate for html encoding in the display of the comment on the web site, those comments are also html encoded in the display of the notification email send to the author.
Example comment left on my WordPress install:
Ampersand: &
Quote: "
Registered: ®
Resulting email notification:
New comment on your post #168 "Prevent iTunes from creating unnecessary clutter and cruft" Author : -- E-mail : -- URL : Whois : -- Comment: Ampersand: & Quote: " Registered: ®
You can see all comments on this post here:
http://example.com/prevent-itunes-from-unnecessary-clutter-and-cruft/#comments
Delete it: http://example.com/wp-admin/comment.php?action=cdc&c=xxxx
Spam it: http://example.com/wp-admin/comment.php?action=cdc&dt=spam&c=xxxx
It appears that only the ampersand has this issue. I am not sure if it also applies to the subject of the email, but can confirm it applies to the body of the email.
The email headers show it was sent as plain text:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"
Attachments (2)
Change History (14)
#2
@
15 years ago
- Component changed from General to Mail
- Description modified (diff)
- Keywords needs-patch added; email html encode html encoding ampersand removed
- Milestone changed from Unassigned to Future Release
Confirmed for ampersands.
#3
@
14 years ago
- Keywords has-patch added; needs-patch removed
Also happens with other special chars like <
and >
. Fix is the same as what was done for #9913.
#4
@
13 years ago
I'd quite like to see this in 3.5. Every time I get a comment notification email with entities in it, I think to myself I need to find this ticket and bump it.
#5
@
10 years ago
- Keywords needs-refresh added; has-patch removed
- Milestone changed from Future Release to 4.4
- Owner set to chriscct7
- Status changed from new to assigned
- Version changed from 2.9.2 to 2.9
Related #9913.