aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-log-manager.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-09-21 21:38:53 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-09-21 21:38:53 +0800
commit9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32 (patch)
treed34c587d9724a23d1ed41b6e1090e4aa2d2b1924 /libempathy/empathy-log-manager.c
parentb72033eca1da0b143b2dbb5e8337d2e88dc299e8 (diff)
downloadgsoc2013-empathy-9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32.tar
gsoc2013-empathy-9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32.tar.gz
gsoc2013-empathy-9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32.tar.bz2
gsoc2013-empathy-9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32.tar.lz
gsoc2013-empathy-9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32.tar.xz
gsoc2013-empathy-9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32.tar.zst
gsoc2013-empathy-9f3d98f2e1f772a328ba1e5aaf9a2675749cdc32.zip
Ignore log files that don't have a good filename. Fixes bug #462046
2007-09-21 Xavier Claessens <xclaesse@gmail.com> * 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
Diffstat (limited to 'libempathy/empathy-log-manager.c')
-rw-r--r--libempathy/empathy-log-manager.c4
1 files changed, 4 insertions, 0 deletions
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);
}