Skip to content

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented Feb 29, 2020

It will load only objects with the specified classes.
Note that load_file/dump_file work for filehandles too.

Also enable $LoadBlessed for YAML::XS/Syck/.pm because they were set to false by default.

For demo I added

    # only for testing
 #    $yaml_module = 'YAML::PP';
 #    $yaml_module = 'YAML::PP::LibYAML';

in _yaml_module.

Also enable $LoadBlessed because they were set to false by default
in YAML::XS/Syck/.pm
@perlpunk
Copy link
Contributor Author

Maybe it should be configurable if loading objects should be enabled or not, similar to yaml_load_code.

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.

1 participant