From a4c8bdeda21a7d6b549e8125595029e6f025c338 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 31 Mar 2019 22:54:38 +0200 Subject: [PATCH] fix decryption of protected note revisions --- src/services/protected_session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/protected_session.js b/src/services/protected_session.js index d79002b63..553b1b756 100644 --- a/src/services/protected_session.js +++ b/src/services/protected_session.js @@ -83,11 +83,11 @@ function decryptNoteRevision(hist) { try { if (hist.title) { - hist.title = dataEncryptionService.decryptString(dataKey, hist.title); + hist.title = dataEncryptionService.decryptString(dataKey, hist.title.toString()); } if (hist.content) { - hist.content = dataEncryptionService.decryptString(dataKey, hist.content); + hist.content = dataEncryptionService.decryptString(dataKey, hist.content.toString()); } } catch (e) {