From 362e353e4ee43a5aa37fd4c264ad0b40bbd0098b Mon Sep 17 00:00:00 2001 From: eilers Date: Fri, 19 Nov 2004 11:05:19 +0000 Subject: Don't just allow "TYPE=".. This makes the vcard import filter more robust against unexpected typos.. --- (limited to 'library') diff --git a/library/backend/vobject.cpp b/library/backend/vobject.cpp index 592d116..28b8bae 100644 --- a/library/backend/vobject.cpp +++ b/library/backend/vobject.cpp @@ -1355,8 +1355,10 @@ DLLEXPORT(void) writeVObjectsToFile(char *fname, VObject *list) DLLEXPORT(const char *) vObjectTypeInfo(VObject *o) { const char *type = vObjectName( o ); - if ( strcmp( type, "TYPE" ) == 0 ) - type = vObjectStringZValue( o ); + if ( strcmp( type, "type" ) == 0 || + strcmp( type, "TYPE" ) == 0 || + strcmp( type, "Type" ) == 0 ) + type = vObjectStringZValue( o ); return type; } -- cgit v0.9.0.2