Skip to content

Commit

Permalink
Fix: Make sure URL parameters are properly escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
vfonic committed Feb 28, 2023
1 parent 68a30ff commit f1bfe6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/airrecord/client.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require_relative 'faraday_rate_limiter'
require 'erb'

module Airrecord
class Client
Expand Down Expand Up @@ -28,8 +29,8 @@ def connection
end
end

def escape(*args)
CGI.escape(*args)
def escape(*args)
ERB::Util.url_encode(*args)
end

def parse(body)
Expand Down

0 comments on commit f1bfe6b

Please sign in to comment.