MD5 comparisons should be case insensitive.

This commit is contained in:
Daniel Scalzi
2020-07-07 22:47:22 -04:00
parent bace2e12e1
commit 6b755fef15
4 changed files with 6 additions and 6 deletions

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
}