mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 10:46:32 +00:00
style(rubocop): Security/YAMLLoad
This commit is contained in:
@@ -7,7 +7,7 @@ describe Postal::DKIMHeader do
|
||||
Dir[examples].each do |path|
|
||||
contents = File.read(path)
|
||||
frontmatter, email = contents.split(/^---\n/m, 2)
|
||||
frontmatter = YAML.load(frontmatter)
|
||||
frontmatter = YAML.safe_load(frontmatter)
|
||||
email.strip
|
||||
it "works with #{path.split('/').last}" do
|
||||
mocked_time = Time.at(frontmatter["time"].to_i)
|
||||
|
||||
Reference in New Issue
Block a user