From 60c16a9139102844f28d0b24d03067290378a1a9 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 20 Jun 2018 02:40:52 +0100 Subject: [PATCH] dash in the middle of a tag isn't special, allow it to be accelerated --- 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 7015a3c9..f2a515fa 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -163,7 +163,7 @@ class Image { $yays = 0; $nays = 0; foreach($tags as $tag) { - if(!preg_match("/^-?[a-zA-Z0-9_]+$/", $tag)) { + if(!preg_match("/^-?[a-zA-Z0-9_-]+$/", $tag)) { return false; } if($tag[0] == "-") $nays++;