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
Informed by ruby/psych#533 (comment), this Issue notes the availability of the YAML.unsafe_load method, in Psych 4.0.
YAML.unsafe_loadif available, ORYAML.safe_loadif available, enabling aliases and all the permitted classesYAML.loadif 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