From a9b670fdf55eff3177d3a4cfd761ca4cab1c71cf Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 15 May 2017 11:17:46 +0200 Subject: [PATCH] don't parse trailing slash as part of encryption key in old hashes --- www/common/common-hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-hash.js b/www/common/common-hash.js index 401291d6c..afb6bca2b 100644 --- a/www/common/common-hash.js +++ b/www/common/common-hash.js @@ -55,7 +55,7 @@ Version 1 if (hash.slice(0,1) !== '/' && hash.length >= 56) { // Old hash parsed.channel = hash.slice(0, 32); - parsed.key = hash.slice(32); + parsed.key = hash.slice(32, 56); parsed.version = 0; return parsed; }