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:
parent
4e5d409d91
commit
16f83a8f2b
@ -93,7 +93,10 @@ class Database {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function sanitise($tag) {
|
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) {
|
private function build_search_querylet($terms) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user