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.