Use lower case for hashing

This commit is contained in:
Pig Fang 2019-08-01 14:52:43 +08:00
parent 5fab376248
commit 7929de7891

View File

@ -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'));
}