Skip to content

Use YAML.unsafe_load when available #275

@olleolleolle

Description

@olleolleolle

Informed by ruby/psych#533 (comment), this Issue notes the availability of the YAML.unsafe_load method, in Psych 4.0.

  • use YAML.unsafe_load if available, OR
  • use YAML.safe_load if available, enabling aliases and all the permitted classes
  • use YAML.load if those methods aren't available (lower versions of Psych)

Location of use:
https://github.com/cschiewek/devise_ldap_authenticatable/blob/default/lib/devise_ldap_authenticatable/ldap/connection.rb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions