-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scan for JS code also in CSS comments
The `Cleaner()` now scans for hidden JavaScript code embedded within CSS comments. In certain contexts, such as within `<svg>` or `<math>` tags, `<style>` tags may lose their intended function, allowing comments like `/* foo */` to potentially be executed by the browser.
- Loading branch information
1 parent
dcbc163
commit c5d816f
Showing
2 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters