Ticket #17375: 17375.diff
File 17375.diff, 1.6 KB (added by , 12 years ago) |
---|
-
wp-includes/functions.php
261 261 return false; 262 262 $token = $data[0]; 263 263 switch ( $token ) { 264 case 'S' : 264 265 case 's' : 265 266 if ( '"' !== $data[$length-2] ) 266 267 return false; 267 268 case 'a' : 269 case 'C' : 268 270 case 'O' : 269 return (bool) preg_match( "/^{$token}:[ 0-9]+:/s", $data );271 return (bool) preg_match( "/^{$token}:[+]?[0-9]+:/s", $data ); 270 272 case 'b' : 271 273 case 'i' : 272 274 case 'd' : 273 return (bool) preg_match( "/^{$token}:[0-9.E -]+;\$/", $data );275 return (bool) preg_match( "/^{$token}:[0-9.EeINF+-]+;\$/", $data ); 274 276 } 275 277 return false; 276 278 } … … 295 297 return false; 296 298 elseif ( ';' !== $data[$length-1] ) 297 299 return false; 298 elseif ( $data[0] !== 's' )300 elseif ( $data[0] !== 's' && $data[0] !== 'S' ) 299 301 return false; 300 302 elseif ( '"' !== $data[$length-2] ) 301 303 return false; … … 1437 1439 /** 1438 1440 * Determine if a directory is writable. 1439 1441 * 1440 * This function is used to work around certain ACL issues 1442 * This function is used to work around certain ACL issues 1441 1443 * in PHP primarily affecting Windows Servers. 1442 1444 * 1443 1445 * @see win_is_writable() … … 1457 1459 /** 1458 1460 * Workaround for Windows bug in is_writable() function 1459 1461 * 1460 * PHP has issues with Windows ACL's for determine if a 1462 * PHP has issues with Windows ACL's for determine if a 1461 1463 * directory is writable or not, this works around them by 1462 1464 * checking the ability to open files rather than relying 1463 1465 * upon PHP to interprate the OS ACL.