mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-15 11:51:23 +00:00
Fix for bug #2505
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
@"http://www.ietf.org/internet-drafts/draft-dawson-vcard-xml-dtd-03.txt"
|
||||
#endif
|
||||
|
||||
static NSArray *privilegedTagNames = nil;
|
||||
|
||||
@implementation NGCardsSaxHandler
|
||||
|
||||
- (id) init
|
||||
@@ -42,6 +44,12 @@
|
||||
if ((self = [super init]))
|
||||
topGroupClass = nil;
|
||||
|
||||
if (!privilegedTagNames)
|
||||
{
|
||||
privilegedTagNames = [NSArray arrayWithObjects: @"ADR", @"N", @"RRULE", nil];
|
||||
RETAIN(privilegedTagNames);
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -211,7 +219,11 @@
|
||||
free (content);
|
||||
content = NULL;
|
||||
// NSLog (@"content: '%@'", s);
|
||||
contentValues = [s vCardSubvalues];
|
||||
if ([privilegedTagNames containsObject: [currentElement tag]])
|
||||
contentValues = [s vCardSubvalues];
|
||||
else
|
||||
contentValues = [NSMutableDictionary dictionaryWithObject: [NSMutableArray arrayWithObject: [NSMutableArray arrayWithObject: s]]
|
||||
forKey: @""];
|
||||
}
|
||||
else
|
||||
contentValues = nil;
|
||||
|
||||
Reference in New Issue
Block a user