aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-05 07:11:00 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-05 07:11:00 +0800
commitbd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf (patch)
treee006fb055035ca8830a40dab4fe9e6733372ebce /addressbook/backend/ebook
parentfef8a881026a6dac9e73a5b7d928811b66e77495 (diff)
downloadgsoc2013-evolution-bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf.tar
gsoc2013-evolution-bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf.tar.gz
gsoc2013-evolution-bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf.tar.bz2
gsoc2013-evolution-bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf.tar.lz
gsoc2013-evolution-bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf.tar.xz
gsoc2013-evolution-bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf.tar.zst
gsoc2013-evolution-bd7a7a7bb93234e0a8ccfa6776cf8e6e7b3ecadf.zip
Check if the file is a VCard before importing
svn path=/trunk/; revision=12610
Diffstat (limited to 'addressbook/backend/ebook')
-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);