Use lower case for hashing
This commit is contained in:
parent
5fab376248
commit
7929de7891
|
|
@ -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'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user