Make WordPress Core

Changeset 31051


Ignore:
Timestamp:
01/05/2015 04:39:26 AM (12 years ago)
Author:
pento
Message:

WPDB: To ensure we're not asking MySQL to read data using queries that it can't handle, make sure that we run all read queries through the character set sanity checks.

See #21212.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r31050 r31051  
    20182018
    20192019                if ( $query ) {
    2020                         $this->check_current_query = false;
    20212020                        $this->query( $query );
    20222021                }
    … …  
    20472046                $this->func_call = "\$db->get_row(\"$query\",$output,$y)";
    20482047                if ( $query ) {
    2049                         $this->check_current_query = false;
    20502048                        $this->query( $query );
    20512049                } else {
    … …  
    20852083        public function get_col( $query = null , $x = 0 ) {
    20862084                if ( $query ) {
    2087                         $this->check_current_query = false;
    20882085                        $this->query( $query );
    20892086                }
    … …  
    21142111
    21152112                if ( $query ) {
    2116                         $this->check_current_query = false;
    21172113                        $this->query( $query );
    21182114                } else {
    … …  
    24402436                                }
    24412437
     2438                                $this->check_current_query = false;
     2439
    24422440                                $row = $this->get_row( "SELECT " . implode( ', ', $query ), ARRAY_N );
    24432441                                if ( ! $row ) {
Note: See TracChangeset for help on using the changeset viewer.