Skip to content

Commit

Permalink
Security fix discovered by github
Browse files Browse the repository at this point in the history
  • Loading branch information
bradpotts committed Nov 1, 2024
1 parent 81af328 commit a4dccf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ruby_api_pack_cloudways/connection/cw_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def handle_response(response)

# Parse response from Cloudways API
def parse_response(response)
Oj.load(response.body)
Oj.load(response.body, mode: :strict)
rescue Oj::ParseError => e
raise "Error parsing response: #{e.message}"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_api_pack_cloudways/connection/cw_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def cw_api_token
private

def parse_response(response)
Oj.load(response.body)
Oj.load(response.body, mode: :strict)
rescue Oj::ParseError => e
raise "Error parsing response: #{e.message}"
end
Expand Down

0 comments on commit a4dccf0

Please sign in to comment.