(fix) don't escape quoted strings during versit generation
parent
2c2c5241eb
commit
b02a4f82a0
1
NEWS
1
NEWS
|
@ -10,6 +10,7 @@ Bug fixes
|
||||||
- numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849)
|
- numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849)
|
||||||
- correctly handle the References header over EAS (#3365)
|
- correctly handle the References header over EAS (#3365)
|
||||||
- make sure English is always used when generating Date headers using EAS (#3356)
|
- make sure English is always used when generating Date headers using EAS (#3356)
|
||||||
|
- don't escape quoted strings during versit generation
|
||||||
|
|
||||||
2.3.2 (2015-09-16)
|
2.3.2 (2015-09-16)
|
||||||
------------------
|
------------------
|
||||||
|
|
|
@ -158,16 +158,31 @@
|
||||||
NSMutableString *string;
|
NSMutableString *string;
|
||||||
unsigned int len, i;
|
unsigned int len, i;
|
||||||
unichar c;
|
unichar c;
|
||||||
|
BOOL isQuoted;
|
||||||
|
|
||||||
len = [self length];
|
len = [self length];
|
||||||
string = [NSMutableString stringWithCapacity: len * 1.5];
|
string = [NSMutableString stringWithCapacity: len * 1.5];
|
||||||
|
isQuoted = NO;
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
c = [self characterAtIndex: i];
|
c = [self characterAtIndex: i];
|
||||||
|
|
||||||
|
if (isQuoted)
|
||||||
|
{
|
||||||
|
if (c == '"')
|
||||||
|
isQuoted = NO;
|
||||||
|
|
||||||
|
[string appendFormat: @"%C", c];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
|
case '"':
|
||||||
|
isQuoted = YES;
|
||||||
|
[string appendFormat: @"%C", c];
|
||||||
|
break;
|
||||||
case '\\':
|
case '\\':
|
||||||
[string appendString: @"\\\\"];
|
[string appendString: @"\\\\"];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue