aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/ebook/evolution-vcard-importer.c9
2 files changed, 9 insertions, 6 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 140c76e722..69fa2e9069 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-12 Iain Holmes <iain@ximian.com>
+
+ * backend/e-book/evolution-vcard-importer.c (support_format_fn): Check
+ for no extension. Actually same as Jason's fix below :) but also check
+ the file contents.
+
2001-07-12 JP Rosevear <jpr@ximian.com>
* gui/component/addressbook-config.glade: add accelerators,
diff --git a/addressbook/backend/ebook/evolution-vcard-importer.c b/addressbook/backend/ebook/evolution-vcard-importer.c
index 7a3a56fbd6..caed08b8e0 100644
--- a/addressbook/backend/ebook/evolution-vcard-importer.c
+++ b/addressbook/backend/ebook/evolution-vcard-importer.c
@@ -156,12 +156,9 @@ support_format_fn (EvolutionImporter *importer,
int i;
ext = strrchr (filename, '.');
-
- /* Require an extension in order to strcmp with our list of
- supported extensions */
- if (ext == NULL)
- return FALSE;
-
+ if (ext == NULL) {
+ return check_file_is_vcard (filename);
+ }
for (i = 0; supported_extensions[i] != NULL; i++) {
if (strcmp (supported_extensions[i], ext) == 0)
return check_file_is_vcard (filename);