Make WordPress Core


Ignore:
Timestamp:
04/22/2015 03:01:25 PM (9 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.

See #32051.

File:
1 edited

Legend:

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

    r32233 r32261  
    25432543                    // Split the CONVERT() calls by charset, so we can make sure the connection is right
    25442544                    $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( %s USING {$value['charset']} )", $value['value'] );
     2545                    unset( $data[ $col ]['db'] );
    25452546                }
    25462547            }
Note: See TracChangeset for help on using the changeset viewer.