From 77340f152092fb75062229796782860de11bd53e Mon Sep 17 00:00:00 2001 From: Harry Lu Date: Mon, 3 Nov 2003 03:03:11 +0000 Subject: Fix for #50387. 2003-11-03 Harry Lu Fix for #50387. * importers/icalendar-importer.c (support_format_fn): Call icalcomponent_is_valid() to check whether the returned icalcomponent is valid. svn path=/trunk/; revision=23165 --- calendar/ChangeLog | 8 ++++++++ calendar/importers/icalendar-importer.c | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c5bd5344cc..335030b080 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2003-11-03 Harry Lu + + Fix for #50387. + + * importers/icalendar-importer.c (support_format_fn): + Call icalcomponent_is_valid() to check whether the returned + icalcomponent is valid. + 2003-10-31 Hans Petter Jansson * gui/calendar-component.c (calendar_component_init): Add the webcal 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; } } -- cgit