[buddypress-trac] [BuddyPress Trac] #6517: bp_create_excerpt returning mall-formed markup - mb_strlen issues?

buddypress-trac noreply at wordpress.org
Tue Jun 23 13:42:41 UTC 2015


#6517: bp_create_excerpt returning mall-formed markup - mb_strlen issues?
------------------------------+---------------------------
 Reporter:  hnla              |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.3.3
Component:  Component - Core  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:                    |
------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9962"]:
 {{{
 #!CommitTicketReference repository="" revision="9962"
 Improve the HTML-handling logic of `bp_create_excerpt()`.

 * The regular expression that detects tags should be less generous, to
 avoid false matches.
 * Word boundary detection, as used when `exact=false`, should never return
 a space character inside of an HTML tag (such as the space in `<a
 href="http://example.com">`).

 These changes fix some tag-parsing issues introduced in [9523].

 Fixes #6517.
 }}}

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


More information about the buddypress-trac mailing list