summaryrefslogtreecommitdiff
path: root/modules/todo
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-29 20:31:17 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-29 20:31:17 +0200
commit730a78ba9deb5a70b56497dd61e3aa52e62d58ed (patch)
tree68dfc7f28cc6fd21878336972d600ffe1cdb29b4 /modules/todo
parent454c7ae8b7d4c683ef19df46d83a35a1f18b48fd (diff)
todo: Don't add illegal task submissions
Diffstat (limited to 'modules/todo')
-rw-r--r--modules/todo/todo.js1
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++,