MD5 comparisons should be case insensitive.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user