Merge pull request #6723 from betagouv/fix-uri-encode
This commit is contained in:
commit
8778b24110
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Helpscout::API
|
|||
end
|
||||
|
||||
def add_phone_number(email, phone)
|
||||
query = URI.encode("(email:#{email})")
|
||||
query = CGI.escape("(email:#{email})")
|
||||
response = call_api(:get, "#{CUSTOMERS}?mailbox=#{user_support_mailbox_id}&query=#{query}")
|
||||
if response.success?
|
||||
body = parse_response_body(response)
|
||||
|
|
Loading…
Reference in a new issue