Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2015 04:08:00 PM (11 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-activity/bp-activity-template.php

    r9729 r9773  
    309309        if ( (int) $this->total_activity_count && (int) $this->pag_num ) {
    310310            $this->pag_links = paginate_links( array(
    311                 'base'      => add_query_arg( $page_arg, '%#%' ),
     311                'base'      => add_query_arg( $this->pag_arg, '%#%' ),
    312312                'format'    => '',
    313313                'total'     => ceil( (int) $this->total_activity_count / (int) $this->pag_num ),
     
    29772977     * @uses bp_is_activity_component()
    29782978     * @uses bp_current_action()
    2979      * @uses add_query_arg()
    29802979     * @uses wp_get_referer()
    29812980     * @uses wp_nonce_url()
     
    32223221            $link = apply_filters( 'bp_get_activity_filter_link_href', $link, $component );
    32233222
    3224             $component_links[] = $before . '<a href="' . esc_attr( $link ) . '">' . ucwords( $component ) . '</a>' . $after;
     3223            $component_links[] = $before . '<a href="' . esc_url( $link ) . '">' . ucwords( $component ) . '</a>' . $after;
    32253224        }
    32263225
     
    32283227
    32293228        if ( isset( $_GET['afilter'] ) )
    3230             $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . esc_attr( $link ) . '">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';
     3229            $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . esc_url( $link ) . '">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';
    32313230
    32323231        /**
     
    34723471 */
    34733472function bp_send_public_message_link() {
    3474     echo bp_get_send_public_message_link();
     3473    echo esc_url( bp_get_send_public_message_link() );
    34753474}
    34763475
Note: See TracChangeset for help on using the changeset viewer.