Skip to content

Commit

Permalink
Prevent EXC_BAD_ACCESS on invalid paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Tomasello authored and richardbuckle committed Apr 20, 2010
1 parent c6371ec commit 4fcf85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MGTwitterEngine.m
Expand Up @@ -593,7 +593,7 @@ - (NSMutableURLRequest *)_baseRequestWithMethod:(NSString *)method
queryParameters:(NSDictionary *)params queryParameters:(NSDictionary *)params
{ {
// Construct appropriate URL string. // Construct appropriate URL string.
NSString *fullPath = path; NSString *fullPath = [path stringByAddingPercentEscapesUsingEncoding:NSNonLossyASCIIStringEncoding];
if (params) { if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES]; fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
} }
Expand Down

0 comments on commit 4fcf85f

Please sign in to comment.