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/branches/branch_2.1@597 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-10-28 17:50:14 +00:00
parent fe566b1b8a
commit e075900194

View File

@ -95,7 +95,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;
}