diff options
-rw-r--r-- | modules/todo/todo.js | 1 |
1 files changed, 1 insertions, 0 deletions
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++, |