Fix nekot rules
This commit is contained in:
parent
61705d001d
commit
987b2b4e48
1 changed files with 5 additions and 2 deletions
|
@ -18,8 +18,11 @@ class Nekot extends RulesValidator
|
|||
public function nekot(Validator $v, string $value): string
|
||||
{
|
||||
if (
|
||||
'' == $value
|
||||
|| \substr(\preg_replace('%\D+%', '', $v->token), 0, 6) !== $value
|
||||
$v->getStatus('token')
|
||||
&& (
|
||||
'' == $value
|
||||
|| \substr(\preg_replace('%\D+%', '', $v->token), 0, 6) !== $value
|
||||
)
|
||||
) {
|
||||
$v->addError('Javascript disabled or bot', FORK_MESS_ERR);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue