aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/evolution-vcard-importer.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/ebook/evolution-vcard-importer.c')
-rw-r--r--addressbook/backend/ebook/evolution-vcard-importer.c4
1 files changed, 4 insertions, 0 deletions
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);