Permalink
Browse files

Prevent EXC_BAD_ACCESS on invalid paths

  • Loading branch information...
1 parent c6371ec commit 4fcf85f354457560d6f9e435e78a5ac5c822d29b Michael Tomasello committed with richardbuckle Apr 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 MGTwitterEngine.m
View
@@ -593,7 +593,7 @@ - (NSMutableURLRequest *)_baseRequestWithMethod:(NSString *)method
queryParameters:(NSDictionary *)params
{
// Construct appropriate URL string.
- NSString *fullPath = path;
+ NSString *fullPath = [path stringByAddingPercentEscapesUsingEncoding:NSNonLossyASCIIStringEncoding];
if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}

0 comments on commit 4fcf85f

Please sign in to comment.