From bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 4 Sep 2001 23:11:00 +0000 Subject: Check if the file is a VCard before importing svn path=/trunk/; revision=12610 --- addressbook/backend/ebook/evolution-vcard-importer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/backend') diff --git a/addressbook/backend/ebook/evolution-vcard-importer.c b/addressbook/backend/ebook/evolution-vcard-importer.c index ea474f780b..246c5ecb6e 100644 --- a/addressbook/backend/ebook/evolution-vcard-importer.c +++ b/addressbook/backend/ebook/evolution-vcard-importer.c @@ -187,6 +187,10 @@ load_file_fn (EvolutionImporter *importer, { VCardImporter *gci; + if (check_file_is_vcard (filename) == FALSE) { + return FALSE; + } + gci = (VCardImporter *) closure; gci->filename = g_strdup (filename); gci->folderpath = g_strdup (folderpath); -- cgit