Skip to:
Content

BuddyPress.org

Changeset 10865


Ignore:
Timestamp:
06/01/2016 10:52:40 PM (3 years ago)
Author:
r-a-y
Message:

Activity Embeds: Make regex for top.location.href filter less brittle.

See #7104.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-embeds.php

    r10864 r10865  
    3838 */
    3939function bp_activity_embed_excerpt_onclick_location_filter( $text ) {
    40     return preg_replace_callback( '/<a href=\"([^\"]*)\"/iU', 'bp_activity_embed_excerpt_onclick_location_filter_callback', $text );
     40    return preg_replace_callback( '/<a\s+[^>]*href=\"([^\"]*)\"/iU', 'bp_activity_embed_excerpt_onclick_location_filter_callback', $text );
    4141}
    4242    /**
Note: See TracChangeset for help on using the changeset viewer.