Skip to content

Commit 065fd5d

Browse files
committed
Simplified even more -safeString
1 parent bf547dd commit 065fd5d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

SoObjects/SOGo/NSString+Utilities.m

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
static unichar *cssEscapingCharacters = NULL;
4747
static int cssEscapingCount;
4848

49-
static NSString *controlCharString = nil;
50-
static NSCharacterSet *controlCharSet = nil;
51-
5249
@implementation NSString (SOGoURLExtension)
5350

5451
- (NSString *) composeURLWithAction: (NSString *) action
@@ -308,14 +305,9 @@ - (NSString *) safeString
308305
(c >= 0x20 && c <= 0xD7FF) ||
309306
(c >= 0xE000 && c <= 0xFFFD) ||
310307
(c >= 0x10000 && c <= 0x10FFFF))
311-
j++;
312-
else
313308
{
314-
if (i+1 < len)
315-
{
316-
buf++;
317-
*(start+j) = *buf;
318-
}
309+
*(start+j) = c;
310+
j++;
319311
}
320312

321313
buf++;

0 commit comments

Comments
 (0)