Skip to content

Business intelligence made simple

Use safe_load [skip ci]

Andrew Kaneb5749fb3a7c4
diff --git a/lib/blazer.rb b/lib/blazer.rb
index b6f7bb81..d86cc55c 100644
--- a/lib/blazer.rb
+++ b/lib/blazer.rb
@@ -116,7 +116,7 @@ module Blazer
@settings ||= begin
path = Rails.root.join("config", "blazer.yml").to_s
if File.exist?(path)
- YAML.load(ERB.new(File.read(path)).result)
+ YAML.safe_load(ERB.new(File.read(path)).result)
else
{}
end