stricter tag sanitising
git-svn-id: file:///home/shish/svn/shimmie2/trunk@586 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
47dd9abeff
commit
5199b9dc60
@ -114,7 +114,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user