WordPress.org

Make WordPress Core

Changeset 27077


Ignore:
Timestamp:
02/02/2014 10:09:19 PM (7 years ago)
Author:
nacin
Message:

Consistently trim and unslash search queries for the users list tables.

props aubreypwd.
fixes #26115.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r26342 r27077  
    1717        global $usersearch, $role, $wpdb, $mode;
    1818
    19         $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
     19        $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
    2020
    2121        $users_per_page = $this->get_items_per_page( 'users_network_per_page' );
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r24123 r27077  
    3636        global $role, $usersearch;
    3737
    38         $usersearch = isset( $_REQUEST['s'] ) ? trim( $_REQUEST['s'] ) : '';
     38        $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
    3939
    4040        $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';
Note: See TracChangeset for help on using the changeset viewer.