Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2024 12:43:50 PM (12 months ago)
Author:
imath
Message:

Use a more appropriate function to escape slugs

Props johndawson155

See #9143 (trunk)
Closes https://github.com/buddypress/buddypress/pull/277

File:
1 edited

Legend:

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

    r13824 r13844  
    13341334 */
    13351335function bp_root_slug( $component = '' ) {
    1336     echo esc_url( bp_get_root_slug( $component ) );
     1336    echo esc_attr( bp_get_root_slug( $component ) );
    13371337}
    13381338    /**
     
    14641464 */
    14651465function bp_search_slug() {
    1466     echo esc_url( bp_get_search_slug() );
     1466    echo esc_attr( bp_get_search_slug() );
    14671467}
    14681468    /**
Note: See TracChangeset for help on using the changeset viewer.