Skip to content

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