You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
YAML.safe_load will raise an exception when you try to load text that happens to contain a sequence of numbers that looks like a date but is not:
s="2016-02-31"
YAML.safe_load(s.to_yaml)
# => Psych::DisallowedClass: Tried to load unspecified class: Date
Using YAML.load instead of safe_load works fine and text that contains a correct date works fine too. But this can be used to raise an exception on any application that uses YAML.safe_load on user provided text (accidentally or otherwise)
lucascaton, Nightfirecat, cheninformz, mickey, williampollet and 11 more