We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c1d938 commit 0d39bffCopy full SHA for 0d39bff
lib/nanoc/github.rb
@@ -27,7 +27,7 @@ def client
27
def decode(content)
28
content = Base64.decode64(content)
29
matchdata = content.match(REGEX)
30
- metadata = matchdata ? YAML.load(matchdata[:metadata]) : {}
+ metadata = matchdata ? YAML.safe_load(matchdata[:metadata], permitted_classes: [Time]) : {}
31
32
[metadata, content.gsub(REGEX, '')]
33
end
0 commit comments