diff --git a/opensearch/lib/opensearch.rb b/opensearch/lib/opensearch.rb index 81242b558..6cc1bbd6d 100644 --- a/opensearch/lib/opensearch.rb +++ b/opensearch/lib/opensearch.rb @@ -65,7 +65,7 @@ def verify_open_search body = if response.headers['content-type'] == 'application/yaml' require 'yaml' - YAML.load(response.body) + YAML.safe_load(response.body) else response.body end diff --git a/profile/benchmarking.rb b/profile/benchmarking.rb index 8193fba40..9f748d13a 100644 --- a/profile/benchmarking.rb +++ b/profile/benchmarking.rb @@ -79,7 +79,7 @@ module Benchmarking def each_run(file) if file file = File.new(file) - matrix = YAML.load(ERB.new(file.read).result) + matrix = YAML.safe_load(ERB.new(file.read).result) file.close matrix.each_with_index do |run, i|