[buddypress-trac] [BuddyPress Trac] #7459: Autolink disturb values containing single quotes

buddypress-trac noreply at wordpress.org
Thu Jan 4 13:56:13 UTC 2018

#7459: Autolink disturb values containing single quotes
 Reporter:  danbp             |       Owner:
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  3.0
Component:  Extended Profile  |     Version:  2.8.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
Changes (by DJPaul):

 * keywords:   => has-patch


 xprofile: fix HTML entities in field values rendering incorrectly when
 auto-link is enabled.

 `bp_xprofile_escape_field_data()` runs before this function, which often
 runs esc_html().
 In turn, that encodes HTML entities in the string (";" becomes "'").

 Before splitting on the ";" character, decode the HTML entities, and re-
 encode after.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7459#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list