don't parse trailing slash as part of encryption key in old hashes

This commit is contained in:
ansuz 2017-05-15 11:17:46 +02:00
parent 9bbd3161ca
commit a9b670fdf5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}