diff options
author | Vitaly Takmazov | 2016-08-28 21:16:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-08-28 21:16:56 +0300 |
commit | 49cd38a2ef9ad9c9aa08bdb3ff2baafb6abede89 (patch) | |
tree | cda41995d9505b04460cadf4345b7b8fd3b13f34 /Juick/Helpers/NSURL+PathParameters.m | |
parent | 188d8e4ea870d1a6c8edd5a9b323742804badeba (diff) |
drop iOS6 support
Diffstat (limited to 'Juick/Helpers/NSURL+PathParameters.m')
-rw-r--r-- | Juick/Helpers/NSURL+PathParameters.m | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Juick/Helpers/NSURL+PathParameters.m b/Juick/Helpers/NSURL+PathParameters.m index 83a55bb..6752757 100644 --- a/Juick/Helpers/NSURL+PathParameters.m +++ b/Juick/Helpers/NSURL+PathParameters.m @@ -35,13 +35,7 @@ @implementation NSString (URLParameters) - (NSString *)stringByEscapingForURLArgument { - // Encode all the reserved characters, per RFC 3986 (<http://www.ietf.org/rfc/rfc3986.txt>) - NSString *escapedString = (__bridge NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, - (CFStringRef)self, - NULL, - (CFStringRef)@"!*'\"();:@&=+$,/?%#[] ", - kCFStringEncodingUTF8); - return [escapedString copy]; + return [self stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@"!*'\"();:@&=+$,/?%#[] "]]; } @end |