Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix: Incorrect signature base string when parameters contains reserve…

…d characters

All parameters has been Pre-encoded by MKNetworkKit.
Need to be decoded before using.
  • Loading branch information...
commit 76f0f4b54667d3b9649f5b085e550cec85b73334 1 parent bd042fc
@sycx sycx authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  RSOAuthEngine/RSOAuthEngine.m
2  RSOAuthEngine/RSOAuthEngine.m
@@ -147,7 +147,7 @@ - (NSString *)signatureBaseStringForRequest:(MKNetworkOperation *)request signOn
// Add parameters from the query string
if (!onlyOAuth) {
NSURL *url = [NSURL URLWithString:request.url];
- NSArray *pairs = [url.query componentsSeparatedByString:@"&"];
+ NSArray *pairs = [[url.query urlDecodedString] componentsSeparatedByString:@"&"];
[pairs enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
NSArray *elements = [obj componentsSeparatedByString:@"="];
NSString *key = [[elements objectAtIndex:0] urlEncodedString];
Please sign in to comment.
Something went wrong with that request. Please try again.