From 9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 21 Sep 2007 13:38:53 +0000 Subject: Ignore log files that don't have a good filename. Fixes bug #462046 2007-09-21 Xavier Claessens * libempathy/empathy-log-manager.c: Ignore log files that don't have a good filename. Fixes bug #462046 (Michael Scherer). * configure.ac: Bump GLIB version to 2.14.0. svn path=/trunk/; revision=309 --- libempathy/empathy-log-manager.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-log-manager.c b/libempathy/empathy-log-manager.c index e47f50fb8..efdbae86b 100644 --- a/libempathy/empathy-log-manager.c +++ b/libempathy/empathy-log-manager.c @@ -263,6 +263,10 @@ empathy_log_manager_get_dates (EmpathyLogManager *manager, continue; } + if (!g_regex_match_simple ("\\d{8}", date, 0, 0)) { + continue; + } + dates = g_list_insert_sorted (dates, date, (GCompareFunc) strcmp); } -- cgit v1.2.3