aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/backend/ebook/evolution-vcard-importer.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 553c3be34a..8947dd94d4 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-04 Iain Holmes <iain@ximian.com>
+
+ * backend/ebook/evolution-vcard-importer.c (load_file_fn): Return FALSE
+ if the file isn't a valid VCard file.
+
2001-08-05 Zbigniew Chyla <cyba@gnome.pl>
I18n fixes (mainly making buttons on the right side less Anglocentric :-)
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);