From 28742ede997f7a8a3561ea23d883969de779ac1b Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 10 Sep 2020 23:43:51 +0200 Subject: [PATCH 1/2] Remove newlines before checking equality --- server/proofVerification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/proofVerification.js b/server/proofVerification.js index dc7556d..b99ad9f 100644 --- a/server/proofVerification.js +++ b/server/proofVerification.js @@ -106,7 +106,7 @@ const VerifyJsonProof = (data, checkPath, checkClaim, checkRelation) => { return re.test(data); break; case 'eq': - return data.toLowerCase() == checkClaim.toLowerCase(); + return data.replace(/\r?\n|\r/, '').toLowerCase() == checkClaim.toLowerCase(); break; case 'oneOf': re = new RegExp(checkClaim, "gi"); From 8d612f545b2f073ac1f5945af3f2d5fa38119f41 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 10 Sep 2020 23:45:06 +0200 Subject: [PATCH 2/2] Release 2.2.7 --- CHANGELOG.md | 4 ++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85be9c2..b3749bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.2.7] - 2020-09-10 +### Fixed +- Remove newlines before checking equality + ## [2.2.6] - 2020-09-10 ### Fixed - Fix handling of keys without selfCertifications diff --git a/package-lock.json b/package-lock.json index c349f27..f0c4b35 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "keyoxide-web", - "version": "2.2.6", + "version": "2.2.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2eae2fb..6bd505d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "keyoxide-web", - "version": "2.2.6", + "version": "2.2.7", "description": "A modern, secure and privacy-friendly platform to establish your decentralized online identity", "main": "index.js", "dependencies": {