fix(addressbook): properly handle unknown properties in DAV report

This commit is contained in:
Francis Lachapelle
2021-09-29 16:02:52 -04:00
parent 3da633aebf
commit 4884cb3978

View File

@@ -527,12 +527,15 @@
currentValue = values;
while (*currentProperty)
{
*values = nil;
methodSel = SOGoSelectorForPropertyGetter (*currentProperty);
if (methodSel && [ldifEntry respondsToSelector: methodSel])
*currentValue = [[ldifEntry performSelector: methodSel]
safeStringByEscapingXMLString];
{
*currentValue = [[ldifEntry performSelector: methodSel]
safeStringByEscapingXMLString];
currentValue++;
}
currentProperty++;
currentValue++;
}
// NSLog (@"/_properties:ofObject:: %@", [NSDate date]);