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

pull/1/head
ansuz 8 years ago
parent 9bbd3161ca
commit a9b670fdf5

@ -55,7 +55,7 @@ Version 1
if (hash.slice(0,1) !== '/' && hash.length >= 56) { if (hash.slice(0,1) !== '/' && hash.length >= 56) {
// Old hash // Old hash
parsed.channel = hash.slice(0, 32); parsed.channel = hash.slice(0, 32);
parsed.key = hash.slice(32); parsed.key = hash.slice(32, 56);
parsed.version = 0; parsed.version = 0;
return parsed; return parsed;
} }

Loading…
Cancel
Save