Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Address comment handling issues #218

Merged
merged 2 commits into from
Aug 18, 2022
Merged

Conversation

ohader
Copy link
Contributor

@ohader ohader commented Aug 18, 2022

  • Correctly handle comment end bang state
  • Avoid Scanner::peek reading beyond end of data

Fixes: #215
Fixes: #217

ohader added 2 commits August 12, 2022 10:22
Masterminds\HTML5\Parser\Scanner::peek() reads beyond the end of
actual data, which leads to a "Uninitialized string offset" warning.

Fixes: Masterminds#215
@goetas goetas merged commit 94375b8 into Masterminds:master Aug 18, 2022
@goetas
Copy link
Member

goetas commented Aug 18, 2022

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correctly handle comment end bang state Uninitialized string offset in src/HTML5/Parser/Scanner.php:108
2 participants