diff --git a/index.js b/index.js index c1f0711..c3b00f7 100644 --- a/index.js +++ b/index.js @@ -167,6 +167,12 @@ async function submitSponsorTimes(req, res) { return; } + if (startTime === Infinity || endTime === Infinity) { + //invalid request + res.sendStatus(400); + return; + } + if (startTime > endTime) { //time can't go backwards res.sendStatus(400);