Skip to content

Commit

Permalink
Merge pull request #100 from vfonic/master
Browse files Browse the repository at this point in the history
Fix: Make sure URL parameters are properly escaped
  • Loading branch information
Meekohi authored Mar 2, 2023
2 parents 68a30ff + f1bfe6b commit a92f317
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 a92f317

Please sign in to comment.