Skip to content

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!

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