Skip to:
Content

BuddyPress.org

Changeset 11594


Ignore:
Timestamp:
06/21/2017 04:53:31 PM (7 years ago)
Author:
dcavins
Message:

Add sanitization to groups_check_slug.

The function groups_check_slug() claims to sanitize the slug, but it doesn't. It really should.

See #6014.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r11558 r11594  
    436436function groups_check_slug( $slug ) {
    437437    $bp = buddypress();
     438
     439    // First, make the proposed slug work in a URL.
     440    $slug = sanitize_title( $slug );
    438441
    439442    if ( 'wp' == substr( $slug, 0, 2 ) )
Note: See TracChangeset for help on using the changeset viewer.