diff options
Diffstat (limited to 'calendar/importers/icalendar-importer.c')
-rw-r--r-- | calendar/importers/icalendar-importer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index f2dcbd7097..a98fd9f126 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -315,8 +315,11 @@ support_format_fn (EvolutionImporter *importer, if (contents) { icalcomp = icalparser_parse_string (contents); if (icalcomp) { + if (icalcomponent_is_valid (icalcomp)) + ret = TRUE; + else + ret = FALSE; icalcomponent_free (icalcomp); - ret = TRUE; } } |