Fix nekot rules

This commit is contained in:
Visman 2023-07-23 09:18:07 +07:00
parent 61705d001d
commit 987b2b4e48

View file

@ -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);
}