From 730a78ba9deb5a70b56497dd61e3aa52e62d58ed Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 29 Oct 2016 20:31:17 +0200 Subject: todo: Don't add illegal task submissions --- modules/todo/todo.js | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/todo') diff --git a/modules/todo/todo.js b/modules/todo/todo.js index ad954f9..9e53c76 100644 --- a/modules/todo/todo.js +++ b/modules/todo/todo.js @@ -72,6 +72,7 @@ module.exports=function(app,io,_moddir){ isNaN(repweeks)||repweeks<0||repweeks!=~~repweeks|| isNaN(date.getTime())){ res.status(400).send("Invalid data"); + return; } tasks.push({ id:nextid++, -- cgit v1.2.3-70-g09d2