Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Sanitize SVG Tag Output by Default #9575

Merged
merged 16 commits into from
Feb 23, 2024
Merged

[5.x] Sanitize SVG Tag Output by Default #9575

merged 16 commits into from
Feb 23, 2024

Conversation

JohnathonKoster
Copy link
Contributor

This PR closes #9428

This change sets the sanitize parameter for the SVG tag to true by default. The following calls are equivalent:

{{ svg :src="svg_source" sanitize="true" /}}
{{ svg :src="svg_source" /}}

Users upgrading from previous versions would like to retain the current behavior can opt out of sanitization by adding sanitize="false" to their SVG tag calls:

{{ svg :src="svg_source" sanitize="false" /}}

@jasonvarga jasonvarga merged commit 0f3cb3b into statamic:master Feb 23, 2024
18 checks passed
@jasonvarga jasonvarga deleted the svg-tag-sanitize-by-default branch February 23, 2024 20:37
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.

Sanitize the SVG Tag by default
9 participants