Ticket #9930: optimize-is-serialized.diff
File optimize-is-serialized.diff, 473 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
257 257 case 'a' : 258 258 case 'O' : 259 259 case 's' : 260 if ( preg_match( "/^{$badions[1]}:[0-9]+:.*[;}]\$/s", $data ) )260 if ( in_array(substr($data, -1), array(';', '}')) && preg_match( "/^{$badions[1]}:[0-9]+:/", $data ) ) 261 261 return true; 262 262 break; 263 263 case 'b' :