Commit 9888a972 authored by Robert Speicher's avatar Robert Speicher Committed by Robert Speicher

Merge branch 'yaml_safe_load' into 'master'

Use YAML.safe_load

See merge request !1941
parent 0ece3d65
......@@ -10,7 +10,7 @@ module Ci
attr_reader :before_script, :image, :services, :variables, :path, :cache
def initialize(config, path = nil)
@config = YAML.load(config)
@config = YAML.safe_load(config, [Symbol])
@path = path
unless @config.is_a? Hash
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment