Skip to content

Commit

Permalink
MD5 comparisons should be case insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Jul 8, 2020
1 parent bace2e1 commit 6b755fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github: dscalzi
patreon: dscalzi
custom: ['https://www.paypal.com/paypalme2/dscalzi']
custom: ['https://www.paypal.me/dscalzi']
2 changes: 1 addition & 1 deletion app/assets/js/assetguard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"cross-env": "^7.0.2",
"electron": "^9.0.5",
"electron": "^9.1.0",
"electron-builder": "^22.7.0",
"eslint": "^7.4.0"
},
Expand Down

0 comments on commit 6b755fe

Please sign in to comment.