Skip to content

Commit be5d514

Browse files
committed
[GEM] Improves handling of YAML parsing
1 parent ae4450c commit be5d514

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
@@ -59,7 +59,7 @@ def verify_elasticsearch
5959

6060
body = if response.headers['content-type'] == 'application/yaml'
6161
require 'yaml'
62-
YAML.load(response.body)
62+
YAML.safe_load(response.body)
6363
else
6464
response.body
6565
end

0 commit comments

Comments
 (0)