مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
style(rubocop): Security/YAMLLoad
هذا الالتزام موجود في:
@@ -7,7 +7,7 @@ describe Postal::DKIMHeader do
|
|||||||
Dir[examples].each do |path|
|
Dir[examples].each do |path|
|
||||||
contents = File.read(path)
|
contents = File.read(path)
|
||||||
frontmatter, email = contents.split(/^---\n/m, 2)
|
frontmatter, email = contents.split(/^---\n/m, 2)
|
||||||
frontmatter = YAML.load(frontmatter)
|
frontmatter = YAML.safe_load(frontmatter)
|
||||||
email.strip
|
email.strip
|
||||||
it "works with #{path.split('/').last}" do
|
it "works with #{path.split('/').last}" do
|
||||||
mocked_time = Time.at(frontmatter["time"].to_i)
|
mocked_time = Time.at(frontmatter["time"].to_i)
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم