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

master
Francis Lachapelle 2021-09-29 16:02:52 -04:00
parent 3da633aebf
commit 4884cb3978
1 changed files with 6 additions and 3 deletions

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]);