lib/jekyll/geolexica/glossary.rb in jekyll-geolexica-1.8.1 vs lib/jekyll/geolexica/glossary.rb in jekyll-geolexica-1.8.2
- old
+ new
@@ -49,10 +49,10 @@
raise
end
# Reads and parses concept file located at given path.
def read_concept_file(path)
- YAML.load(File.read path)
+ YAML.safe_load(File.read path, permitted_classes: [Time])
end
# Does nothing, but some sites may replace this method.
def preprocess_concept_hash(concept_hash)
end