ruby-changes:66229
From: Hiroshi <ko1@a...>
Date: Mon, 17 May 2021 12:57:56 +0900 (JST)
Subject: [ruby-changes:66229] dfecc650c3 (master): Workaround with fbb4e3f96c10de2240f2d87eac19cf6f62f65fea in yaml/store.rb
https://git.ruby-lang.org/ruby.git/commit/?id=dfecc650c3 From dfecc650c3f9bbd8b4fb0eefc1e3da65f151d3a8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 17 May 2021 12:57:32 +0900 Subject: Workaround with fbb4e3f96c10de2240f2d87eac19cf6f62f65fea in yaml/store.rb --- lib/yaml/store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb index 3c9b881..f8650b9 100644 --- a/lib/yaml/store.rb +++ b/lib/yaml/store.rb @@ -65,7 +65,7 @@ class YAML::Store < PStore https://github.com/ruby/ruby/blob/trunk/lib/yaml/store.rb#L65 end def load(content) - table = YAML.load(content) + table = YAML.unsafe_load(content) if table == false {} else -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/