Skip to content

Commit e1a4234

Browse files
committed
PICKME: Bugfix on ?-initial invalid comment texts
1 parent 3501197 commit e1a4234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ private function parse_next_tag(): bool {
18441844
$this->parser_state = self::STATE_COMMENT;
18451845
$this->comment_type = self::COMMENT_AS_INVALID_HTML;
18461846
$this->token_length = $closer_at + 1 - $this->token_starts_at;
1847-
$this->text_starts_at = $this->token_starts_at + 2;
1847+
$this->text_starts_at = $this->token_starts_at + 1;
18481848
$this->text_length = $closer_at - $this->text_starts_at;
18491849
$this->bytes_already_parsed = $closer_at + 1;
18501850

0 commit comments

Comments
 (0)