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-friends/bp-friends-template.php

    r13804 r13844  
    1717 */
    1818function bp_friends_slug() {
    19     echo esc_url( bp_get_friends_slug() );
     19    echo esc_attr( bp_get_friends_slug() );
    2020}
    2121    /**
     
    4444 */
    4545function bp_friends_root_slug() {
    46     echo esc_url( bp_get_friends_root_slug() );
     46    echo esc_attr( bp_get_friends_root_slug() );
    4747}
    4848    /**
Note: See TracChangeset for help on using the changeset viewer.