Skip to content
New issue

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

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

Already on GitHub? Sign in 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

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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