stricter tag sanitising

git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@587 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-10-28 01:31:14 +00:00
parent 4e5d409d91
commit 16f83a8f2b

View File

@ -93,7 +93,10 @@ class Database {
}
public function sanitise($tag) {
return preg_replace("/[\s?*]/", "", $tag);
$tag = preg_replace("/[\s?*]/", "", $tag);
$tag = preg_replace("/\.+/", ".", $tag);
$tag = preg_replace("/^[\.\/]+/", "", $tag);
return $tag;
}
private function build_search_querylet($terms) {