Permalink
Browse files

Support more reserved characters while encoding.

  • Loading branch information...
1 parent 944b9f8 commit 0e2b18f2f516d08189a60f69dab4464fb49dd1eb Deepak Prabhakara committed Aug 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 OAuthConsumeriPhoneLib/OAuthConsumerSrc/OARequestParameter.m
@@ -54,7 +54,7 @@ - (void)dealloc
-(NSString *)urlEncode:(NSString*)stringThatNeedsEncoding
{
- NSString *result = (NSString*)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)stringThatNeedsEncoding, NULL, CFSTR(";/?:@&=$+{}<>, "), kCFStringEncodingUTF8);
+ NSString *result = (NSString*)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)stringThatNeedsEncoding, NULL, CFSTR("!*'\"();:@&=+$,/?#[]%<>{} "), kCFStringEncodingUTF8);
return [result autorelease];
}

0 comments on commit 0e2b18f

Please sign in to comment.