From f1bfe6bf2e19002c204da208ef684269ae6c78c1 Mon Sep 17 00:00:00 2001 From: Viktor Date: Tue, 28 Feb 2023 13:55:19 -0500 Subject: [PATCH] Fix: Make sure URL parameters are properly escaped --- lib/airrecord/client.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/airrecord/client.rb b/lib/airrecord/client.rb index 12bc864..23c70f3 100644 --- a/lib/airrecord/client.rb +++ b/lib/airrecord/client.rb @@ -1,4 +1,5 @@ require_relative 'faraday_rate_limiter' +require 'erb' module Airrecord class Client @@ -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)