Skip to content

Commit

Permalink
Correct typo in max digit computation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed May 15, 2024
1 parent 3ff78cc commit 401d30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/html-api/class-wp-html-decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
Expand Down

0 comments on commit 401d30f

Please sign in to comment.