Skip to content

best way to save what you love

core/api: update checkSafeLength

wukko97f4528e92dc
diff --git a/src/core/api.js b/src/core/api.js
index d78fd1d2..8f6060fe 100644
--- a/src/core/api.js
+++ b/src/core/api.js
@@ -128,7 +128,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
const q = req.query;
const checkQueries = q.t && q.e && q.h && q.s && q.i;
const checkBaseLength = q.t.length === 21 && q.e.length === 13;
- const checkSafeLength = q.h.length === 44 && q.s.length === 344 && q.i.length === 24;
+ const checkSafeLength = q.h.length === 43 && q.s.length === 342 && q.i.length === 22;
if (checkQueries && checkBaseLength && checkSafeLength) {
let streamInfo = verifyStream(q.t, q.h, q.e, q.s, q.i);