WordPress.org

Make WordPress Core

Ticket #18148: 18148.patch

File 18148.patch, 704 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-admin/plugins.php

     
    2525$action = $wp_list_table->current_action(); 
    2626 
    2727$plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; 
    28 $s = isset($_REQUEST['s']) ? $_REQUEST['s'] : ''; 
     28$s = isset($_REQUEST['s']) ? urlencode($_REQUEST['s']) : ''; 
    2929 
    3030// Clean up request URI from temporary args for screen options/paging uri's to work as expected. 
    3131$_SERVER['REQUEST_URI'] = remove_query_arg(array('error', 'deleted', 'activate', 'activate-multi', 'deactivate', 'deactivate-multi', '_error_nonce'), $_SERVER['REQUEST_URI']);