-
Notifications
You must be signed in to change notification settings - Fork 445
chore: Preview for removing encoding from Phone NUmber format #871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,8 +77,8 @@ public Execution create(final TwilioRestClient client) { | |
String path = "/v2/Flows/{FlowSid}/Executions"; | ||
|
||
path = path.replace("{" + "FlowSid" + "}", this.pathFlowSid.toString()); | ||
path = path.replace("{" + "To" + "}", this.to.encode("utf-8")); | ||
path = path.replace("{" + "From" + "}", this.from.encode("utf-8")); | ||
path = path.replace("{" + "To" + "}", this.to.toString()); | ||
path = path.replace("{" + "From" + "}", this.from.toString()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Phone numbers in URL paths should be properly encoded to handle special characters like '+' and spaces. Using toString() instead of encode("utf-8") may cause URL parsing errors for international phone numbers. Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||
|
||
Request request = new Request( | ||
HttpMethod.POST, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,7 +259,7 @@ public ComplianceTollfreeInquiries create(final TwilioRestClient client) { | |
path = | ||
path.replace( | ||
"{" + "TollfreePhoneNumber" + "}", | ||
this.tollfreePhoneNumber.encode("utf-8") | ||
this.tollfreePhoneNumber.toString() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing UTF-8 encoding from phone numbers in URL paths may cause issues with special characters or international phone numbers. Phone numbers containing special characters like '+' or spaces should be properly URL-encoded when used in path parameters to prevent URL parsing errors. Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||
); | ||
path = | ||
path.replace( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phone numbers in URL paths should be properly encoded to handle special characters like '+' and spaces. Using toString() instead of encode("utf-8") may cause URL parsing errors for international phone numbers.
Copilot uses AI. Check for mistakes.