MD5 comparisons should be case insensitive.

This commit is contained in:
Daniel Scalzi committed 2020-07-07 22:47:22 -04:00
1 parent bace2e12e1
commit 6b755fef15
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -1009,7 +1009,7 @@ class AssetGuard extends EventEmitter {
}
let buf = fs.readFileSync(filePath)
let calcdhash = AssetGuard._calculateHash(buf, algo)
return calcdhash === hash
return calcdhash === hash.toLowerCase()
}
return false
}