From 6b755fef158b09cbfb9b25d5cf7993b0cf53432f Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Tue, 7 Jul 2020 22:47:22 -0400 Subject: [PATCH] MD5 comparisons should be case insensitive. --- .github/FUNDING.yml | 2 +- app/assets/js/assetguard.js | 2 +- package-lock.json | 6 +++--- package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 9d06c8e..e338313 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ github: dscalzi patreon: dscalzi -custom: ['https://www.paypal.com/paypalme2/dscalzi'] +custom: ['https://www.paypal.me/dscalzi'] diff --git a/app/assets/js/assetguard.js b/app/assets/js/assetguard.js index 9f97d67..0db05e5 100644 --- a/app/assets/js/assetguard.js +++ b/app/assets/js/assetguard.js @@ -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 } diff --git a/package-lock.json b/package-lock.json index 45431c4..1e31439 100644 --- a/package-lock.json +++ b/package-lock.json @@ -993,9 +993,9 @@ } }, "electron": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/electron/-/electron-9.0.5.tgz", - "integrity": "sha512-bnL9H48LuQ250DML8xUscsKiuSu+xv5umXbpBXYJ0BfvYVmFfNbG3jCfhrsH7aP6UcQKVxOG1R/oQExd0EFneQ==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-9.1.0.tgz", + "integrity": "sha512-VRAF8KX1m0py9I9sf0kw1kWfeC87mlscfFcbcRdLBsNJ44/GrJhi3+E8rKbpHUeZNQxsPaVA5Zu5Lxb6dV/scQ==", "dev": true, "requires": { "@electron/get": "^1.0.1", diff --git a/package.json b/package.json index ff61677..3dea7ec 100644 --- a/package.json +++ b/package.json @@ -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" },