From 282dfee8e0f28b72a8507e5166c03e289f1ac563 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Aug 2019 13:55:57 +0000 Subject: [PATCH] General: Correctly detect large floats in `is_serialized()`. Props killerbishop, donmhico, hoythan. Fixes #46570. Built from https://develop.svn.wordpress.org/trunk@45754 git-svn-id: http://core.svn.wordpress.org/trunk@45565 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index df4f561840..019f8b6bf6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -528,7 +528,7 @@ function is_serialized( $data, $strict = true ) { case 'i': case 'd': $end = $strict ? '$' : ''; - return (bool) preg_match( "/^{$token}:[0-9.E-]+;$end/", $data ); + return (bool) preg_match( "/^{$token}:[0-9.E+-]+;$end/", $data ); } return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 419523cb78..769f14bdc7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45753'; +$wp_version = '5.3-alpha-45754'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.