Skip to content

Commit 9fa48e1

Browse files
committed
[GEM] Improves handling of YAML parsing
1 parent 309f654 commit 9fa48e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/lib/elasticsearch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def verify_elasticsearch
9696

9797
body = if response.headers['content-type'] == 'application/yaml'
9898
require 'yaml'
99-
YAML.load(response.body)
99+
YAML.safe_load(response.body)
100100
else
101101
response.body
102102
end

0 commit comments

Comments
 (0)