Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/17/2013 07:35:03 PM (13 years ago)
Author:
johnjamesjacoby
Message:

For all template functions that output URL's, always echo an escaped value using esc_url(). See #2367.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/template-tags.php

    r5018 r5037  
    2525 */
    2626function bbp_forums_url( $path = '/' ) {
    27     echo bbp_get_forums_url( $path );
     27    echo esc_url( bbp_get_forums_url( $path ) );
    2828}
    2929    /**
     
    4949 */
    5050function bbp_topics_url( $path = '/' ) {
    51     echo bbp_get_topics_url( $path );
     51    echo esc_url( bbp_get_topics_url( $path ) );
    5252}
    5353    /**
     
    19451945 */
    19461946function bbp_view_url( $view = false ) {
    1947     echo bbp_get_view_url( $view );
     1947    echo esc_url( bbp_get_view_url( $view ) );
    19481948}
    19491949    /**
Note: See TracChangeset for help on using the changeset viewer.