Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/02/2024 12:45:08 PM (2 years ago)
Author:
imath
Message:

Use a more appropriate function to escape slugs

Props johndawson155

Fixes #9143 (branch 12.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-blogs/bp-blogs-template.php

    r13803 r13845  
    1818 */
    1919function bp_blogs_slug() {
    20         echo esc_url( bp_get_blogs_slug() );
     20        echo esc_attr( bp_get_blogs_slug() );
    2121}
    2222        /**
     
    4646 */
    4747function bp_blogs_root_slug() {
    48         echo esc_url( bp_get_blogs_root_slug() );
     48        echo esc_attr( bp_get_blogs_root_slug() );
    4949}
    5050        /**
     
    11861186                                // phpcs:ignore WordPress.Security.EscapeOutput
    11871187                                bp_get_form_field_attributes( 'blogname' ),
    1188                                 esc_url( bp_signup_get_subdomain_base() )
     1188                                esc_attr( bp_signup_get_subdomain_base() )
    11891189                        );
    11901190                }
Note: See TracChangeset for help on using the changeset viewer.