From d99bb8ff84372dcdf0b52b95fd2147810d4b9371 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 20 May 2016 17:46:48 +0200 Subject: [PATCH] WIP : fallback to old parsing doesn't work --- www/common/crypto.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/common/crypto.js b/www/common/crypto.js index 6c5e37aea..708ee40a9 100644 --- a/www/common/crypto.js +++ b/www/common/crypto.js @@ -41,6 +41,10 @@ define([ if (!isBencoded(msg)) { return encryptStr(msg, key); } + + /* Currently this fails because messages have already been tampered + with before they get here. */ + var spl = splitMessage(msg, true); var json = JSON.parse(spl[1]); // non-patches are not encrypted.