From ac09ba65ce6ebb56a0445e3a58058685f1cd318d Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 2 May 2018 14:39:06 +0200 Subject: [PATCH] strip both old and new style checkpoint labels before decrypting when fetching history --- www/common/outer/async-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 0125e6018..1ab2db1b1 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1001,7 +1001,7 @@ define([ if (parsed[1][3] !== data.channel) { return; } msg = parsed[1][4]; if (msg) { - msg = msg.replace(/^cp\|/, ''); + msg = msg.replace(/cp\|(([A-Za-z0-9+\/=]+)\|)?/, ''); //var decryptedMsg = crypto.decrypt(msg, true); msgs.push(msg); }