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