From 983f8451cf2c0c1f7ee6fc337090ab204253815f Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 3 Feb 2010 21:58:01 +0000 Subject: [PATCH] only optimise this case for regular tags --- 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 74d042b1..9f1b5329 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -140,7 +140,7 @@ class Image { } return $total; } - else if(count($tags) == 1) { + else if(count($tags) == 1 && !preg_match("/[:=><]/", $tags[0])) { return $database->db->GetOne( $database->engine->scoreql_to_sql("SELECT count FROM tags WHERE SCORE_STRNORM(tag) = SCORE_STRNORM(?)"), $tags);