[buddypress-trac] [BuddyPress] #4684: Notification email encoding issues

buddypress-trac noreply at wordpress.org
Mon Nov 26 19:13:48 UTC 2012

#4684: Notification email encoding issues
 Reporter:  blg002        |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  1.7
Component:  Core          |     Version:  1.2
 Severity:  normal        |  Resolution:
 Keywords:                |
Changes (by r-a-y):

 * status:  closed => reopened
 * version:  1.6.1 => 1.2
 * resolution:  invalid =>
 * milestone:   => 1.7


 Upon further review, there are problems with HTML entities not being
 decoded in BuddyPress emails.

 To test, @mention or PM someone and type in something like:

 `Coffee & TV`

 The notification email will output:

 `Coffee & TV`

 This is happening because we run `wp_filter_kses()` before saving the
 content into the DB.  This runs `wp_kses_normalize_entities()`, which
 encodes ampersands and various HTML entities.

 By the time, it reaches `wp_mail()` in the various BP components, we need
 to decode the HTML entities for plain-text emails.  This currently isn't
 being done.

 Could probably fix this easily by running `wp_specialchars_decode()` on
 all email content before sending.

 I'll need to test bbPress to see if the same thing is happening there as

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4684#comment:3>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list