Skip to content

Commit

Permalink
PICKME: Bugfix on ?-initial invalid comment texts
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jul 31, 2024
1 parent 3501197 commit e1a4234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/html-api/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ private function parse_next_tag(): bool {
$this->parser_state = self::STATE_COMMENT;
$this->comment_type = self::COMMENT_AS_INVALID_HTML;
$this->token_length = $closer_at + 1 - $this->token_starts_at;
$this->text_starts_at = $this->token_starts_at + 2;
$this->text_starts_at = $this->token_starts_at + 1;
$this->text_length = $closer_at - $this->text_starts_at;
$this->bytes_already_parsed = $closer_at + 1;

Expand Down

0 comments on commit e1a4234

Please sign in to comment.