diff --git a/build/api/core/Checker.php b/build/api/core/Checker.php index 0e88b0f..19880d0 100755 --- a/build/api/core/Checker.php +++ b/build/api/core/Checker.php @@ -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':