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:
parent
bd69bd88b9
commit
0245870868
@ -116,7 +116,7 @@ class Database {
|
|||||||
public function sanitise($tag) {
|
public function sanitise($tag) {
|
||||||
$tag = preg_replace("/[\s?*]/", "", $tag);
|
$tag = preg_replace("/[\s?*]/", "", $tag);
|
||||||
$tag = preg_replace("/\.+/", ".", $tag);
|
$tag = preg_replace("/\.+/", ".", $tag);
|
||||||
$tag = preg_replace("/^[\.\/]+/", "", $tag);
|
$tag = preg_replace("/^(\.+[\/\\\\])+/", "", $tag);
|
||||||
return $tag;
|
return $tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user