m-soori / vcardio

Automatically exported from code.google.com/p/vcardio
0 stars 0 forks source link

[PATCH] Importing file with multiple cards with pictures fails #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Symptom: When a VCF file contains multiple cards, where some of the cards have 
a photo as their last field, the import of those cards fails silently and the 
photo is attached to the next card in the file instead.

Cause: the END:VCARD line is skipped, so the card is merged with the next one. 
This seems to happen with any field with BASE64 encoding, which will lead to 
other, less obvious errors too.

Fix attached. (The change in VCardIO is just for safety, the one in VCardParser 
is the important one. Apparently this was already tried but in the wrong place, 
as the commented line above suggests.)

Original issue reported on code.google.com by olaf81...@googlemail.com on 28 May 2012 at 5:05

Attachments: