Make WordPress Core

Changeset 32375


Ignore:
Timestamp:
05/06/2015 06:57:44 AM (8 years ago)
Author:
pento
Message:

The UTF-8 regex can occasionally fail on very low memory machines. Reduce the amount of memory it uses.

See #32204.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r32210 r32375  
    12191219            |   [\xF1-\xF3][\x80-\xBF]{3}
    12201220            |   \xF4[\x80-\x8F][\x80-\xBF]{2}
    1221         ){1,50}                              # ...one or more times
     1221        ){1,40}                              # ...one or more times
    12221222        )/x';
    12231223    $location = preg_replace_callback( $regex, '_wp_sanitize_utf8_in_redirect', $location );
  • trunk/src/wp-includes/wp-db.php

    r32374 r32375  
    26552655                }
    26562656
    2657                 $regex .= '){1,50}                          # ...one or more times
     2657                $regex .= '){1,40}                          # ...one or more times
    26582658                    )
    26592659                    | .                                  # anything else
Note: See TracChangeset for help on using the changeset viewer.