From 02458708682bee9fbeed851a5af4c150894c67bd Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 28 Oct 2007 17:49:45 +0000 Subject: [PATCH] allow dots at the start of tags, as long as they're followed by letters; (for .hack) git-svn-id: file:///home/shish/svn/shimmie2/trunk@596 7f39781d-f577-437e-ae19-be835c7a54ca --- core/database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 41a8858f..0696f10b 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -116,7 +116,7 @@ class Database { public function sanitise($tag) { $tag = preg_replace("/[\s?*]/", "", $tag); $tag = preg_replace("/\.+/", ".", $tag); - $tag = preg_replace("/^[\.\/]+/", "", $tag); + $tag = preg_replace("/^(\.+[\/\\\\])+/", "", $tag); return $tag; }