We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf547dd commit 065fd5dCopy full SHA for 065fd5d
SoObjects/SOGo/NSString+Utilities.m
@@ -46,9 +46,6 @@
46
static unichar *cssEscapingCharacters = NULL;
47
static int cssEscapingCount;
48
49
-static NSString *controlCharString = nil;
50
-static NSCharacterSet *controlCharSet = nil;
51
-
52
@implementation NSString (SOGoURLExtension)
53
54
- (NSString *) composeURLWithAction: (NSString *) action
@@ -308,14 +305,9 @@ - (NSString *) safeString
308
305
(c >= 0x20 && c <= 0xD7FF) ||
309
306
(c >= 0xE000 && c <= 0xFFFD) ||
310
307
(c >= 0x10000 && c <= 0x10FFFF))
311
- j++;
312
- else
313
{
314
- if (i+1 < len)
315
- {
316
- buf++;
317
- *(start+j) = *buf;
318
- }
+ *(start+j) = c;
+ j++;
319
}
320
321
buf++;
0 commit comments