From 4aec7e790d667f985f8bbe9ae1728b5ddeb357bb Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 26 Nov 2017 13:18:08 +0100 Subject: [PATCH] upd: api.core.Checker (setup hash to have 128c length) --- build/api/core/Checker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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':