mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Don't allow 0 ms submissions
This commit is contained in:
parent
d5a720fa0c
commit
2516634856
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ module.exports = async function postSkipSegments(req, res) {
|
|||
let endTime = parseFloat(segments[i].segment[1]);
|
||||
|
||||
if (isNaN(startTime) || isNaN(endTime)
|
||||
|| startTime === Infinity || endTime === Infinity || startTime < 0 || startTime > endTime) {
|
||||
|| startTime === Infinity || endTime === Infinity || startTime < 0 || startTime >= endTime) {
|
||||
//invalid request
|
||||
res.sendStatus(400);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue