Make WordPress Core


Ignore:
Timestamp:
04/23/2015 11:47:17 AM (10 years ago)
Author:
pento
Message:

WPDB: When sanity checking a string by sending it to MySQL for conversion checks, the incorrect data structure was being returned from wpdb::strip_invalid_text(), causing all write queries to fail for some character sets when the query contained non-ASCII characters.

Merge of [32261] to the 3.9 branch.

See #32051.

File:
1 edited

Legend:

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

    r32239 r32273  
    24812481                    // Split the CONVERT() calls by charset, so we can make sure the connection is right
    24822482                    $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( %s USING {$value['charset']} )", $value['value'] );
     2483                    unset( $data[ $col ]['db'] );
    24832484                }
    24842485            }
Note: See TracChangeset for help on using the changeset viewer.