Make WordPress Core

Ticket #26115: 26115.patch

File 26115.patch, 1.2 KB (added by aubreypwd, 11 years ago)

Fix to \' being presented and setnt to WP_MS_Users_List_Table and WP_Users_List_Table

  • src/wp-admin/includes/class-wp-ms-users-list-table.php

     
    1616        function prepare_items() {
    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' );
    2222
  • src/wp-admin/includes/class-wp-users-list-table.php

     
    3535        function prepare_items() {
    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'] : '';
    4141