allow tags with apostrophes to be accelerated

This commit is contained in:
Shish 2019-06-13 16:57:23 +01:00
parent e77f7de7f9
commit 10d8b352c1

View file

@ -157,7 +157,7 @@ class Image
$yays = 0; $yays = 0;
$nays = 0; $nays = 0;
foreach ($tags as $tag) { foreach ($tags as $tag) {
if (!preg_match("/^-?[a-zA-Z0-9_-]+$/", $tag)) { if (!preg_match("/^-?[a-zA-Z0-9_'-]+$/", $tag)) {
return null; return null;
} }
if ($tag[0] == "-") { if ($tag[0] == "-") {