[GH-ISSUE #128] Square brackets unescaped in URI parameters #78

Closed
opened 2026-03-03 16:45:29 +03:00 by kerem · 0 comments
Owner

Originally created by @matt-walker on GitHub (Oct 12, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/128

Hello,

If a square bracket character '[' or ']' is included within a URI parameter's value it looks like it's not encoded. I think this may have been left unescaped to support ipv6 address easier right? But now the uri parameter values will leave brackets unencoded.

File: String+OAuthSwift.swift
Function: urlEncodedStringWithEncoding

let charactersToLeaveUnescaped = "[]." as CFStringRef

Originally created by @matt-walker on GitHub (Oct 12, 2015). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/128 Hello, If a square bracket character '[' or ']' is included within a URI parameter's value it looks like it's not encoded. I think this may have been left unescaped to support ipv6 address easier right? But now the uri parameter values will leave brackets unencoded. File: String+OAuthSwift.swift Function: urlEncodedStringWithEncoding let charactersToLeaveUnescaped = "[]." as CFStringRef
kerem 2026-03-03 16:45:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#78
No description provided.