You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put any Unicode string in OAMutableURLRequest httpbody data,the library will crash in this function call.
NSArray *parameters = [self parameters] in the following code.
(NSString *)_signatureBaseString {
// OAuth Spec, Section 9.1.1 "Normalize Request Parameters"
// build a sorted array of both request parameters and OAuth header parameters
NSDictionary *tokenParameters = [token parameters];
// 6 being the number of OAuth params in the Signature Base String
NSArray *parameters = [self parameters];
I checked and found NSASCIIStringEncoding is being used in two places in the following functions in this file NSMutableURLRequest+Parameters.m
Put any Unicode string in OAMutableURLRequest httpbody data,the library will crash in this function call.
NSArray *parameters = [self parameters] in the following code.
// OAuth Spec, Section 9.1.1 "Normalize Request Parameters"
// build a sorted array of both request parameters and OAuth header parameters
NSDictionary *tokenParameters = [token parameters];
// 6 being the number of OAuth params in the Signature Base String
NSArray *parameters = [self parameters];
I checked and found NSASCIIStringEncoding is being used in two places in the following functions in this file NSMutableURLRequest+Parameters.m
...
...
. I think they should be NSUTF8StringEncoding. I changed and tested. no crash anymore.
The text was updated successfully, but these errors were encountered: