Changeset 47454
- Timestamp:
- 03/13/2020 09:12:01 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r47453 r47454 617 617 function maybe_unserialize( $data ) { 618 618 if ( is_serialized( $data ) ) { // Don't attempt to unserialize data that wasn't serialized going in. 619 return @unserialize( $data);619 return @unserialize( trim( $data ) ); 620 620 } 621 621 -
trunk/tests/phpunit/tests/functions.php
r47452 r47454 292 292 true, 293 293 ), 294 array( ' s:25:"this string is serialized"; ', true ), 294 295 ); 295 296 }
Note: See TracChangeset
for help on using the changeset viewer.