Skip to content

Commit 401d30f

Browse files
committed
Correct typo in max digit computation.
1 parent 3ff78cc commit 401d30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/html-api/class-wp-html-decoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public static function read_character_reference( $context, $text, $at, &$skip_by
243243
return '';
244244
}
245245

246-
if ( $digit_count - $zero_count > $max_digits ) {
246+
if ( $digit_count > $max_digits ) {
247247
$skip_bytes = $end_of_span - $at;
248248
return '';
249249
}

0 commit comments

Comments
 (0)