Make WordPress Core


Ignore:
Timestamp:
04/23/2015 11:55:46 AM (11 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.7 branch.

See #32051.

File:
1 edited

Legend:

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

    r32241 r32275  
    20962096                    // Split the CONVERT() calls by charset, so we can make sure the connection is right
    20972097                    $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( %s USING {$value['charset']} )", $value['value'] );
     2098                    unset( $data[ $col ]['db'] );
    20982099                }
    20992100            }
Note: See TracChangeset for help on using the changeset viewer.