Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2015 03:38:54 PM (10 years ago)
Author:
johnjamesjacoby
Message:

All: make sure URL variables are escaped (trunk)

File:
1 edited

Legend:

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

    r9765 r9772  
    388388        if ( (int) $this->total_activity_count && (int) $this->pag_num ) {
    389389            $this->pag_links = paginate_links( array(
    390                 'base'      => add_query_arg( $page_arg, '%#%' ),
     390                'base'      => add_query_arg( $this->page_arg, '%#%' ),
    391391                'format'    => '',
    392392                'total'     => ceil( (int) $this->total_activity_count / (int) $this->pag_num ),
     
    30903090     * @uses bp_is_activity_component()
    30913091     * @uses bp_current_action()
    3092      * @uses add_query_arg()
    30933092     * @uses wp_get_referer()
    30943093     * @uses wp_nonce_url()
     
    33383337            $link = apply_filters( 'bp_get_activity_filter_link_href', $link, $component );
    33393338
    3340             $component_links[] = $before . '<a href="' . esc_attr( $link ) . '">' . ucwords( $component ) . '</a>' . $after;
     3339            $component_links[] = $before . '<a href="' . esc_url( $link ) . '">' . ucwords( $component ) . '</a>' . $after;
    33413340        }
    33423341
     
    33443343
    33453344        if ( isset( $_GET['afilter'] ) ) {
    3346             $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . esc_attr( $link ) . '">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';
     3345            $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . esc_url( $link ) . '">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';
    33473346        }
    33483347
     
    35923591 */
    35933592function bp_send_public_message_link() {
    3594     echo bp_get_send_public_message_link();
     3593    echo esc_url( bp_get_send_public_message_link() );
    35953594}
    35963595
Note: See TracChangeset for help on using the changeset viewer.