diff --git a/includes/ot-functions-admin.php b/includes/ot-functions-admin.php index 41d79797..02ebd82c 100755 --- a/includes/ot-functions-admin.php +++ b/includes/ot-functions-admin.php @@ -5057,7 +5057,7 @@ function ot_decode( $value ) { preg_match( '/a:\d+:{.*?}/', $decoded, $array_matches, PREG_OFFSET_CAPTURE, 0 ); // Search for an object. - preg_match( '/O|C:\+?\d+:"[a-z0-9_]+":\+?\d+:/i', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 ); + preg_match( '/O:\+?\d+:"[a-z0-9_]+":\+?\d+:|C:\+?\d+:"[a-z0-9_]+":\+?\d+:/i', $decoded, $obj_matches, PREG_OFFSET_CAPTURE, 0 ); // Prevent object injection or non arrays. if ( $obj_matches || ! $array_matches ) {