Привет,
Кто-нибудь видел информацию об этом CVE. Я не могу найти ни кода, ни подробностей о нем
Спасибо
Кто-нибудь видел информацию об этом CVE. Я не могу найти ни кода, ни подробностей о нем
Спасибо
public function filter_where( $where, $wp_query ) {
$search = $wp_query->get( 'edd_search' );
if ( ! $search ) {
return $where;
}
$terms = $this->parse_search_terms( $search );
if ( empty( $terms ) ) {
return $where;
}
global $wpdb;
$query = '';
foreach ( $terms as $term ) {
$operator = empty( $query ) ? '' : ' AND ';
$term = $wpdb->esc_like( $term );
$query .= "{$operator}{$wpdb->posts}.post_title LIKE '%{$term}%'";
}
if ( $query ) {
$where .= " AND ({$query})";
}
return $where;
}
public function filter_where( $where, $wp_query ) {
$search = $wp_query->get( 'edd_search' );
if ( ! $search ) {
return $where;
}
$terms = $this->parse_search_terms( $search );
if ( empty( $terms ) ) {
return $where;
}
global $wpdb;
$query = '';
foreach ( $terms as $term ) {
$operator = empty( $query ) ? '' : ' AND ';
$term = '%' . $wpdb->esc_like( wp_unslash( $term ) ) . '%';
$query .= $wpdb->prepare( "{$operator}{$wpdb->posts}.post_title LIKE %s", $term );
}
if ( $query ) {
$where .= " AND ({$query})";
}
return $where;
}