From 401d30facdb4d3cf0f7cfda18514b5e07eb2e5cb Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Tue, 14 May 2024 20:21:23 -0700 Subject: [PATCH] Correct typo in max digit computation. --- src/wp-includes/html-api/class-wp-html-decoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/html-api/class-wp-html-decoder.php b/src/wp-includes/html-api/class-wp-html-decoder.php index 7d446b2c08f30..1f8fe526b4f7f 100644 --- a/src/wp-includes/html-api/class-wp-html-decoder.php +++ b/src/wp-includes/html-api/class-wp-html-decoder.php @@ -243,7 +243,7 @@ public static function read_character_reference( $context, $text, $at, &$skip_by return '�'; } - if ( $digit_count - $zero_count > $max_digits ) { + if ( $digit_count > $max_digits ) { $skip_bytes = $end_of_span - $at; return '�'; }