WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/22/2015 03:04:29 PM (5 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.1 branch.

See #32051.

File:
1 edited

Legend:

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

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