Skip to content

Commit

Permalink
Encode both components of signature secret.
Browse files Browse the repository at this point in the history
  • Loading branch information
calebd committed Aug 30, 2011
1 parent 5cf5a13 commit 4e2bdbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TDOAuth.m
Expand Up @@ -109,7 +109,7 @@ - (id)initWithConsumerKey:(NSString *)consumerKey
@"HMAC-SHA1", @"oauth_signature_method",
[accessToken copy], @"oauth_token", // leave accessToken last or you'll break XAuth attempts
nil];
signatureSecret = [[NSString stringWithFormat:@"%@&%@", consumerSecret, tokenSecret ?: @""] retain];
signatureSecret = [[NSString stringWithFormat:@"%@&%@", [consumerSecret pcen], [tokenSecret ?: @"" pcen]] retain];
}
return self;
}
Expand Down

0 comments on commit 4e2bdbd

Please sign in to comment.