mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 04:20:33 +00:00
get rid of control chars before returning the response
This commit is contained in:
@@ -2078,8 +2078,13 @@ static NSArray *childRecordFields = nil;
|
||||
nodeTag = [self _nodeTag: *property];
|
||||
if (*currentValue)
|
||||
{
|
||||
// Make sure the sent value is sanitized.
|
||||
NSString *sanitizedValue;
|
||||
|
||||
sanitizedValue = [[*currentValue componentsSeparatedByCharactersInSet: [*currentValue safeCharacterSet]]
|
||||
componentsJoinedByString: @""];
|
||||
propertyValue = [NSString stringWithFormat: @"<%@>%@</%@>",
|
||||
nodeTag, *currentValue, nodeTag];
|
||||
nodeTag, sanitizedValue, nodeTag];
|
||||
propDict = properties200;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user