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
This commit is contained in:
shish 2007-10-28 17:49:45 +00:00
parent bd69bd88b9
commit 0245870868

View File

@ -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;
}