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

fix: PermitScrubber accepts frozen tags #196

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

flavorjones
Copy link
Member

@flavorjones flavorjones commented Dec 12, 2024

Previously, if an invalid/unsafe tag was present, the scrubber attempted to modify the tags array. At best this modified the caller's variable. At worst it raised an exception when the array was frozen. Now it properly copies the tags when they are assigned.

Fixes #195

Previously, if an invalid/unsafe tag was present, the scrubber
attempted to modify the tags array. Now it properly copies the tags
when they are assigned.

Fixes #195
@flavorjones flavorjones merged commit 694d981 into main Dec 12, 2024
11 checks passed
@flavorjones flavorjones deleted the flavorjones-fix-frozen-allowed-tags branch December 12, 2024 20:54
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.

Rails Sanitize Gem: Frozen Allowed Tags List is Mutated Internally
1 participant