Skip to content

Commit

Permalink
Enable YAML aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
svillemot authored and fauno committed Aug 30, 2023
1 parent e28cd31 commit 5afe0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def merged_file_read_opts(site, opts)

# Safely load YAML strings
def safe_load_yaml(yaml)
Psych.safe_load(yaml, :permitted_classes => [Date, Time])
Psych.safe_load(yaml, :permitted_classes => [Date, Time], aliases: true)
rescue ArgumentError
# Psych versions < 3.1 had a different safe_load API and used
# problematic language.
Expand Down

0 comments on commit 5afe0f5

Please sign in to comment.