mcabber/mcabber/histolog.c
changeset 1864 27c42ee4b6f0
parent 1815 6abca6000762
child 1865 e9773bd9dd2e
--- a/mcabber/mcabber/histolog.c	Sat Apr 03 20:21:37 2010 +0200
+++ b/mcabber/mcabber/histolog.c	Sat Apr 03 20:39:06 2010 +0200
@@ -54,6 +54,10 @@
   if (!(UseFileLogging || FileLoadLogs))
     return NULL;
 
+  if (!g_strcmp0(bjid, ".") || !g_strcmp0(bjid, "..") ||
+      strchr(bjid, "/"))
+    return NULL;
+
   lowerid = g_strdup(bjid);
   if (!lowerid)
     return NULL;