Closed
Description
I ran into a problem with CSSmin hanging during the minification process. Eventually I tracked it down to a problem with an unclosed comment at the end of the file. It can be reproduced with this CSS:
/* Comment 1 */
/* Comment 2
When I run CSSmin against this it does the infinite loop thing until hitting the max execution time limit in PHP.
Yes the error is that user didn't close the comment, but I think a defensive approach would be to strip the unclosed trailing comment out.
Metadata
Metadata
Assignees
Labels
No labels