Skip to content

Fix infinite while-loop bug when minifying CSS with unclosed body block#59

Closed
brandonkelly wants to merge 1 commit intotubalmartin:masterfrom
brandonkelly:patch-1
Closed

Fix infinite while-loop bug when minifying CSS with unclosed body block#59
brandonkelly wants to merge 1 commit intotubalmartin:masterfrom
brandonkelly:patch-1

Conversation

@brandonkelly
Copy link
Copy Markdown

This PR fixes #58 by checking if $blockEndPos is false, and if so, throwing an InvalidArgumentException.

@brandonkelly
Copy link
Copy Markdown
Author

Just realized another proposed fix already exists for this bug (#49), so will close this.

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.

Infinite while-loop bug when minifying invalid CSS

1 participant