Ticket #18007: 18007.5.patch
File 18007.5.patch, 835 bytes (added by , 13 years ago) |
---|
-
wp-includes/functions.php
252 252 if ( 'N;' == $data ) 253 253 return true; 254 254 $length = strlen( $data ); 255 // if mbstring.func_overload is enabled, strlen() may not return the full length in bytes for UTF-8 strings 256 while ( isset( $data[ $length ] ) ) 257 $length++; 255 258 if ( $length < 4 ) 256 259 return false; 257 260 if ( ':' !== $data[1] ) … … 289 292 return false; 290 293 $data = trim( $data ); 291 294 $length = strlen( $data ); 295 // if mbstring.func_overload is enabled, strlen() may not return the full length in bytes for UTF-8 strings 296 while ( isset( $data[ $length ] ) ) 297 $length++; 292 298 if ( $length < 4 ) 293 299 return false; 294 300 elseif ( ':' !== $data[1] )