dash in the middle of a tag isn't special, allow it to be accelerated
This commit is contained in:
parent
adaca87ca1
commit
60c16a9139
@ -163,7 +163,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 false;
|
return false;
|
||||||
}
|
}
|
||||||
if($tag[0] == "-") $nays++;
|
if($tag[0] == "-") $nays++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user