Skip to content

Fix RestrictedYAMLTree allowing the Symbol class should allow all symbols #617

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

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

casperisfine
Copy link

Ref: #495

That's how it works for safe_load:

>> YAML.safe_load(':foo', permitted_classes: [Symbol])
=> :foo

So safe_dump should mirror that.

cc @tenderlove

…bols

Ref: ruby#495

That's how it works for `safe_load`:
```ruby
>> YAML.safe_load(':foo', permitted_classes: [Symbol])
=> :foo
```

So `safe_dump` should mirror that.
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.

None yet

3 participants