Skip to content

Add infrastructure and diagnostics for unsupported directives - #57

Merged
Mpdreamz merged 1 commit into
mainfrom
feature/unsupported-directive
Nov 12, 2024
Merged

Mpdreamz merged 1 commit into
mainfrom
feature/unsupported-directive

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

This PR also ensures tests log output correctly.

This PR also ensures tests log output correctly.
@Mpdreamz
Mpdreamz merged commit 53fd0b2 into main Nov 12, 2024
@Mpdreamz
Mpdreamz deleted the feature/unsupported-directive branch November 12, 2024 07:53
@Mpdreamz Mpdreamz mentioned this pull request Nov 12, 2024
19 tasks
theletterf added a commit that referenced this pull request Feb 9, 2026
Replace regex-based script/event-handler stripping with DOMParser +
XMLSerializer. This addresses three CodeQL findings:

- Bad HTML filtering regexp (#56): regex missed </script > variants
- Incomplete multi-character sanitization (#57): nested on* attrs
- DOM text reinterpreted as HTML (#55): regex not robust enough

Also route the fullscreen modal SVG through sanitizeSvg.

Co-authored-by: Claude Opus 4 <[email protected]>
Co-authored-by: Cursor <[email protected]>
@cotti cotti mentioned this pull request May 26, 2026
@cotti cotti mentioned this pull request Jun 3, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant