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

buddypress-trac noreply at wordpress.org
Wed Jan 10 12:42:11 UTC 2018


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

 * owner:   => djpaul
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11803"]:
 {{{
 #!CommitTicketReference repository="" revision="11803"
 xprofile: fix HTML entities in semi-colon seperated field values rendering
 incorrectly when auto-link is enabled.

 `bp_xprofile_escape_field_data()` runs before the 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.

 Fixes #7459
 }}}

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


More information about the buddypress-trac mailing list