X-Git-Url: http://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/06a4fcf020fe84287092077c5d15a25777b8d804..57565dacea36e6630345679897dc823cf5b903f4:/tools/weblog-update.rb diff --git a/tools/weblog-update.rb b/tools/weblog-update.rb index f955f24..677f367 100755 --- a/tools/weblog-update.rb +++ b/tools/weblog-update.rb @@ -29,7 +29,7 @@ if content =~ /\A---(--)?\s*$/ end if metadata - meta = YAML.load(metadata) + meta = YAML.load(metadata, permitted_classes: [Time]) timefmt = "%FT%T%z" updatestr = updatetime.round.strftime(timefmt) autoset = nil @@ -49,7 +49,7 @@ if metadata if autoset # Revalidate YAML - meta = YAML.load(metadata) + meta = YAML.load(metadata, permitted_classes: [Time]) unless meta[autoset] == updatetime.round raise "failed to auto-insert " + autoset end