diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 7b1ffd7e..02f5f221 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -156,7 +156,7 @@ class Image { } return $total; } - else if(count($tags) == 1 && !preg_match("/[:=><]/", $tags[0])) { + else if(count($tags) == 1 && !preg_match("/[:=><\*\?]/", $tags[0])) { $term = Tag::resolve_alias($tags[0]); return $database->get_one( $database->scoreql_to_sql("SELECT count FROM tags WHERE SCORE_STRNORM(tag) = SCORE_STRNORM(:tag)"),