WordPress.org

Make WordPress Core


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

See #32051.

File:
1 edited

Legend:

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

    r32235 r32272  
    25172517                    // Split the CONVERT() calls by charset, so we can make sure the connection is right
    25182518                    $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( %s USING {$value['charset']} )", $value['value'] );
     2519                    unset( $data[ $col ]['db'] );
    25192520                }
    25202521            }
Note: See TracChangeset for help on using the changeset viewer.