Make WordPress Core


Ignore:
Timestamp:
08/05/2019 01:54:43 PM (7 years ago)
Author:
SergeyBiryukov
Message:

General: Correctly detect large floats in is_serialized().

Props killerbishop, donmhico, hoythan.
Fixes #46570.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r45742 r45754  
    529529                case 'd':
    530530                        $end = $strict ? '$' : '';
    531                         return (bool) preg_match( "/^{$token}:[0-9.E-]+;$end/", $data );
     531                        return (bool) preg_match( "/^{$token}:[0-9.E+-]+;$end/", $data );
    532532        }
    533533        return false;
Note: See TracChangeset for help on using the changeset viewer.