From c57801bce7732ee27b424620d08d4fa99ec34d21 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 3 Sep 2012 11:13:08 +0100 Subject: [PATCH] wildcards aren't regular tags either --- core/imageboard.pack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"),