Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2015 04:08:00 PM (10 years ago)
Author:
johnjamesjacoby
Message:

All: make sure URLs are escaped (2.2 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/src/bp-blogs/bp-blogs-activity.php

    r9369 r9773  
    175175
    176176    // Build the 'post link' part of the activity action string
    177     $post_link  = '<a href="' . $post_url . '">' . $post_title . '</a>';
     177    $post_link  = '<a href="' . esc_url( $post_url ) . '">' . $post_title . '</a>';
    178178
    179179    $user_link = bp_core_get_userlink( $activity->user_id );
     
    252252    }
    253253
    254     $post_link = '<a href="' . $post_url . '">' . $post_title . '</a>';
     254    $post_link = '<a href="' . esc_url( $post_url ) . '">' . $post_title . '</a>';
    255255    $user_link = bp_core_get_userlink( $activity->user_id );
    256256
Note: See TracChangeset for help on using the changeset viewer.