From 0fbbeea421bb8120e58f3f2d2a9fe5d25e180608 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 12 Jul 2001 21:10:55 +0000 Subject: Check the file even if the extension is NULL svn path=/trunk/; revision=11066 --- addressbook/ChangeLog | 6 ++++++ addressbook/backend/ebook/evolution-vcard-importer.c | 9 +++------ 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 + + * 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 * 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); -- cgit