yaml safe load way to go

This commit is contained in:
booboy 2019-02-03 03:03:33 -06:00
parent e104b0b015
commit dc5ca66549

View file

@ -125,7 +125,7 @@ class Pastebinner
method: :get, method: :get,
url: @scraping_api_url + ENDPOINTS[:scrape_item_meta] + "?i=#{unique_paste_key}" url: @scraping_api_url + ENDPOINTS[:scrape_item_meta] + "?i=#{unique_paste_key}"
) )
YAML.load(response.body) YAML.safe_load(response.body).first
end end
##### PREPARING THE PASTES FOR SERIALIZATION FOR ES CONFORMING TO PER INDEX SEARCHING ##### PREPARING THE PASTES FOR SERIALIZATION FOR ES CONFORMING TO PER INDEX SEARCHING