From b11041898b5d2a7c9c51dfd7592040a8c83ab942 Mon Sep 17 00:00:00 2001 From: Daku Date: Thu, 8 Oct 2015 18:28:00 +0100 Subject: [PATCH] Tag::explode instead of explode this fixes the off chance that an empty tag could be passed --- 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 8b539f3a..de659e3a 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -1247,7 +1247,7 @@ class Tag { $i = 0; $tag_count = count($tags); while($i<$tag_count) { - $aliases = explode(' ', Tag::resolve_alias($tags[$i])); + $aliases = Tag::explode(Tag::resolve_alias($tags[$i]), FALSE); foreach($aliases as $alias){ if(!in_array($alias, $new)){ if($tags[$i] == $alias){