Skip to content

Commit 7d0ffe9

Browse files
author
Federico Fissore
committed
Lib/Board Manager CRC check is now case insensitive. Fixes #2953
1 parent dd50e6d commit 7d0ffe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-core/src/cc/arduino/contributions/packages/DownloadableContributionsDownloader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public File download(DownloadableContribution contribution,
6767
onProgress(progress);
6868
String checksum = contribution.getChecksum();
6969
String algo = checksum.split(":")[0];
70-
if (!FileHash.hash(outputFile, algo).equals(checksum)) {
70+
if (!FileHash.hash(outputFile, algo).equalsIgnoreCase(checksum)) {
7171
throw new Exception(_("CRC doesn't match. File is corrupted."));
7272
}
7373

0 commit comments

Comments
 (0)