mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #128] Square brackets unescaped in URI parameters #78
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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