diff --git a/SOPE/NGCards/NSString+NGCards.m b/SOPE/NGCards/NSString+NGCards.m index 3ea618156..e6aa4de73 100644 --- a/SOPE/NGCards/NSString+NGCards.m +++ b/SOPE/NGCards/NSString+NGCards.m @@ -69,7 +69,7 @@ NSString *newString; unichar *characters, *currentChar, *lastChar, *newPart, *newCurrentChar; NSUInteger max; - BOOL isEscaped, isQuoted; + BOOL isEscaped; values = [NSMutableArray array]; @@ -87,17 +87,7 @@ while (currentChar < lastChar) { - if (isQuoted) - { - if (*currentChar == '"') - isQuoted = NO; - else - { - *newCurrentChar = *currentChar; - newCurrentChar++; - } - } - else if (isEscaped) + if (isEscaped) { if (*currentChar == 'n' || *currentChar == 'N') *newCurrentChar = '\n'; @@ -114,9 +104,7 @@ } else { - if (*currentChar == '"') - isQuoted = YES; - else if (*currentChar == '\\') + if (*currentChar == '\\') isEscaped = YES; else if (*currentChar == ',') { diff --git a/SOPE/NGCards/versitCardsSaxDriver/VSSaxDriver.m b/SOPE/NGCards/versitCardsSaxDriver/VSSaxDriver.m index 0e56a2d51..965674373 100644 --- a/SOPE/NGCards/versitCardsSaxDriver/VSSaxDriver.m +++ b/SOPE/NGCards/versitCardsSaxDriver/VSSaxDriver.m @@ -837,7 +837,7 @@ static NSCharacterSet *whitespaceCharSet = nil; /* a regular content tag */ /* - check whether the tga value is encoded in quoted printable, + check whether the tag value is encoded in quoted printable, this one is used with Outlook vCards (see data/ for examples) */ // TODO: make the encoding check more generic