Closed tdilauro closed 6 years ago
Sorry, I'm still learning. So means JSON.parse would be better?:
def system_information
response = get("#{@config['url']}/api/2.1/rest/system_information", {accept: :json, :cookies => cookies})
JSON.parse(response)['system_information']
end
No worries. I'm just tracking things that come up as I look through the code. I'm going to work on fixing some of these.
Thanks a lot. Send you an invite to collaborate.
Issue #5 is blocking this issue for me. Will need a work-around.
Resolved. Closing.
Use of eval() on unsanitized responses is generally unsafe.
Some Client class methods use eval() to convert JSON to a hash with symbols as keys.