From 7929de789115bc5b3c9546a19497ca280eeddb5a Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Thu, 1 Aug 2019 14:52:43 +0800 Subject: [PATCH] Use lower case for hashing --- app/Services/PackageManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PackageManager.php b/app/Services/PackageManager.php index 4f1ef5ef..2f3f95e2 100644 --- a/app/Services/PackageManager.php +++ b/app/Services/PackageManager.php @@ -38,7 +38,7 @@ class PackageManager } Cache::forget($this->cacheKey); - if (is_string($shasum) && sha1_file($path) != $shasum) { + if (is_string($shasum) && sha1_file($path) != strtolower($shasum)) { @unlink($path); throw new Exception(trans('admin.download.errors.shasum')); }