Skip to content

Commit

Permalink
fix #40: make sha1 check case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
CybotTM authored Apr 20, 2022
1 parent 6f2285d commit 3691e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Netresearch/Composer/Patches/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct(\stdClass $info, PatchSet $patchSet)
$this->info = $info;
$this->patchSet = $patchSet;
$this->checksum = sha1($this->read());
if (isset($this->info->sha1) && $this->info->sha1 !== $this->checksum) {
if (isset($this->info->sha1) && strtolower($this->info->sha1) !== $this->checksum) {
throw new Exception("Expected checksum '{$this->info->sha1}' but got '{$this->checksum}'");
}
}
Expand Down

0 comments on commit 3691e7d

Please sign in to comment.