From dc5ca66549acdf2d738080d1b49b10792500593a Mon Sep 17 00:00:00 2001 From: booboy Date: Sun, 3 Feb 2019 03:03:33 -0600 Subject: [PATCH] yaml safe load way to go --- lib/pastebinner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pastebinner.rb b/lib/pastebinner.rb index 8a360af..4794395 100755 --- a/lib/pastebinner.rb +++ b/lib/pastebinner.rb @@ -125,7 +125,7 @@ class Pastebinner method: :get, url: @scraping_api_url + ENDPOINTS[:scrape_item_meta] + "?i=#{unique_paste_key}" ) - YAML.load(response.body) + YAML.safe_load(response.body).first end ##### PREPARING THE PASTES FOR SERIALIZATION FOR ES CONFORMING TO PER INDEX SEARCHING