upd: api.core.Checker (setup hash to have 128c length)

This commit is contained in:
xdrm-brackets 2017-11-26 13:18:08 +01:00
parent 2c713f48e8
commit 4aec7e790d
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@
// Hash sha1/md5 // Hash sha1/md5
case 'hash': 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; break;
case 'alphanumeric': case 'alphanumeric':