Make WordPress Core


Ignore:
Timestamp:
04/27/2015 02:41:48 PM (7 years ago)
Author:
pento
Message:

In [32299], we should be using mb_strlen() for our string size checks.

File:
1 edited

Legend:

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

    r32299 r32306  
    20652065            }
    20662066
    2067             if ( false !== $value['length'] && strlen( $value['value'] ) > $value['length'] ) {
     2067            if ( false !== $value['length'] && mb_strlen( $value['value'] ) > $value['length'] ) {
    20682068                return false;
    20692069            }
Note: See TracChangeset for help on using the changeset viewer.