WordPress.org

Make WordPress Core

Changeset 25056


Ignore:
Timestamp:
08/20/2013 06:23:48 AM (5 years ago)
Author:
dd32
Message:

Check to see if mbstring.func_overload is configured to affect string functions before switching charsets. Props SergeyBiryukov. Fixes #25063

File:
1 edited

Legend:

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

    r24917 r25056  
    668668
    669669    // See #15789 - PclZip uses string functions on binary data, If it's overloaded with Multibyte safe functions the results are incorrect.
    670     if ( ini_get('mbstring.func_overload') && function_exists('mb_internal_encoding') ) {
     670    if ( ( ini_get('mbstring.func_overload') & 2 ) && function_exists('mb_internal_encoding') ) {
    671671        $previous_encoding = mb_internal_encoding();
    672672        mb_internal_encoding('ISO-8859-1');
Note: See TracChangeset for help on using the changeset viewer.