Security fix
This commit is contained in:
parent
d8a6cc6eb2
commit
4f4a3460a3
|
@ -336,7 +336,8 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
|
||||||
}
|
}
|
||||||
if ( ! empty( $_REQUEST['s'] ) ) {
|
if ( ! empty( $_REQUEST['s'] ) ) {
|
||||||
$where_conditions[] = 'message like %s';
|
$where_conditions[] = 'message like %s';
|
||||||
$where_values[] = '%' . wc_clean( $_REQUEST['s'] ) . '%';
|
$s = wp_unslash( trim( $_REQUEST[ 's' ] ) );
|
||||||
|
$where_values[] = $wpdb->esc_like( $s );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! empty( $where_conditions ) ) {
|
if ( ! empty( $where_conditions ) ) {
|
||||||
|
|
Loading…
Reference in New Issue