From e50d9c4dbb6715e05719991b2d5549acb2188e8a Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 4 Aug 2013 18:21:52 +0100 Subject: [PATCH] only sanitise when saving tags - when searching, '*' is important --- 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 71427512..b1950473 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -462,6 +462,7 @@ class Image { assert(is_array($tags)); + $tags = array_map(array('Tag', 'sanitise'), $tags); $tags = Tag::resolve_aliases($tags); assert(is_array($tags)); @@ -1070,7 +1071,6 @@ class Tag { } } - $new = array_map(array('Tag', 'sanitise'), $new); $new = array_iunique($new); // remove any duplicate tags return $new; }