allow tags with apostrophes to be accelerated
This commit is contained in:
parent
e77f7de7f9
commit
10d8b352c1
1 changed files with 1 additions and 1 deletions
|
@ -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] == "-") {
|
||||||
|
|
Reference in a new issue