get rid of control chars before returning the response
parent
a338b193ba
commit
d572f2af02
1
NEWS
1
NEWS
|
@ -12,6 +12,7 @@ Enchancements
|
||||||
Bug fixes
|
Bug fixes
|
||||||
- fixed sending mails to multiple recipients over AS
|
- fixed sending mails to multiple recipients over AS
|
||||||
- fixed freebusy support in iCal 7 and free/busy state changes (#2878, #2879)
|
- fixed freebusy support in iCal 7 and free/busy state changes (#2878, #2879)
|
||||||
|
- we now get rid of all potential control characters before sending the DAV response
|
||||||
|
|
||||||
2.2.8 (2014-09-10)
|
2.2.8 (2014-09-10)
|
||||||
------------------
|
------------------
|
||||||
|
|
|
@ -2078,8 +2078,13 @@ static NSArray *childRecordFields = nil;
|
||||||
nodeTag = [self _nodeTag: *property];
|
nodeTag = [self _nodeTag: *property];
|
||||||
if (*currentValue)
|
if (*currentValue)
|
||||||
{
|
{
|
||||||
|
// Make sure the sent value is sanitized.
|
||||||
|
NSString *sanitizedValue;
|
||||||
|
|
||||||
|
sanitizedValue = [[*currentValue componentsSeparatedByCharactersInSet: [*currentValue safeCharacterSet]]
|
||||||
|
componentsJoinedByString: @""];
|
||||||
propertyValue = [NSString stringWithFormat: @"<%@>%@</%@>",
|
propertyValue = [NSString stringWithFormat: @"<%@>%@</%@>",
|
||||||
nodeTag, *currentValue, nodeTag];
|
nodeTag, sanitizedValue, nodeTag];
|
||||||
propDict = properties200;
|
propDict = properties200;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue