Skip to content

Commit

Permalink
Warning string.
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster committed Apr 11, 2014
1 parent 30c1353 commit 53cf388
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ - (ATInteraction *)interactionForCodePoint:(NSString *)codePoint {
}

+ (NSString *)stringByEscapingCodePointSeparatorCharactersInString:(NSString *)string {
// Escape "%", "/", and "#".
// Only escape "%", "/", and "#".
// Do not change unless the server spec changes.
NSMutableString *escape = [string mutableCopy];
[escape replaceOccurrencesOfString:@"%" withString:@"%25" options:NSLiteralSearch range:NSMakeRange(0, escape.length)];
[escape replaceOccurrencesOfString:@"/" withString:@"%2F" options:NSLiteralSearch range:NSMakeRange(0, escape.length)];
Expand Down

0 comments on commit 53cf388

Please sign in to comment.