Skip to content

Commit ff71332

Browse files
committed
URI encode phone number lookups
1 parent df2b9fd commit ff71332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/twilio-ruby/rest/lookups/phone_numbers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class PhoneNumbers < Twilio::REST::NextGenListResource;
66
include Twilio::REST::Utils
77

88
def get(number, query={})
9-
full_path = "#{@path}/#{number}"
9+
full_path = "#{@path}/#{URI.encode(number)}"
1010
full_path << "?#{url_encode(twilify(query))}" if !query.empty?
1111
@instance_class.new full_path, @client
1212
end

0 commit comments

Comments
 (0)