mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[PR #165] [CLOSED] fix urlEncodedStringWithEncoding to remove reserved characters #544
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#544
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?
📋 Pull Request Information
Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/165
Author: @tkawaji
Created: 12/26/2015
Status: ❌ Closed
Base:
master← Head:fix_urlencode_rfc3986📝 Commits (1)
01d29c0fix urlEncodedStringWithEncoding to remove reserved characters📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
OAuthSwift/String+OAuthSwift.swift(+5 -1)📄 Description
There is signiture error when parameter value includes line feed code(\n).
So I basically use NSCharacterSet.URLQueryAllowedCharacterSet for stringByAddingPercentEncodingWithAllowedCharacters.
And remove some characters defined as reserved in RFC 3986.
I think there are big changes in urlencoding behavior from existing source code.
So I would appreciate if you could check carefully.
Thank you.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.