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