Skip to content

Fix: Safely skips comma-separated media types in CSS parser#641

Open
ashishkataria86 wants to merge 1 commit into
nahsra:mainfrom
ashishkataria86:main
Open

Fix: Safely skips comma-separated media types in CSS parser#641
ashishkataria86 wants to merge 1 commit into
nahsra:mainfrom
ashishkataria86:main

Conversation

@ashishkataria86

Copy link
Copy Markdown

The current fix only improves stability (treat this as an enhancement) - With this fix, AntiSamy no longer fails or strips the entire <style> block when encountering comma-separated media rules. Instead, it safely preserves valid parts and skips the rest.

The current fix only improves stability (treat this as an enhancement) - With this fix, AntiSamy no longer fails or strips the entire <style> block when encountering comma-separated media rules. Instead, it safely preserves valid parts and skips the rest.
@davewichers

Copy link
Copy Markdown
Collaborator

@spassarop - Have you looked at this PR yet?

@spassarop

Copy link
Copy Markdown
Collaborator

@ashishkataria86 Could you add a test that proves stability and the behavior enhancement?

@davewichers

Copy link
Copy Markdown
Collaborator

@ashishkataria86 - nudge. Can you add the test changes that @spassarop has requested?

@davewichers

Copy link
Copy Markdown
Collaborator

@ashishkataria86 - Are you going to work on the updates @spassarop requested?

@ashishkataria86

Copy link
Copy Markdown
Author

@davewichers
Sure, let me check

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.

3 participants