upd: api.core.Checker (setup hash to have 128c length)
This commit is contained in:
parent
2c713f48e8
commit
4aec7e790d
|
@ -102,7 +102,7 @@
|
|||
|
||||
// Hash sha1/md5
|
||||
case 'hash':
|
||||
return $checker && is_string($value) && preg_match('/^[\da-f]+$/i', $value) && (strlen($value) == 40 || strlen($value) == 64);
|
||||
return $checker && is_string($value) && preg_match('/^[\da-f]{128}$/', $value);
|
||||
break;
|
||||
|
||||
case 'alphanumeric':
|
||||
|
|
Loading…
Reference in New Issue