summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/changes/changes.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/changes/changes.js b/modules/changes/changes.js
index b411471..7cbe7ee 100644
--- a/modules/changes/changes.js
+++ b/modules/changes/changes.js
@@ -346,6 +346,7 @@ module.exports=function(app,io,_moddir){
catch(e){
res.status(400);
res.send("Invalid JSON sent");
+ return;
}
var url=param.url;
var todate=new Date(param.todate);
@@ -357,6 +358,7 @@ module.exports=function(app,io,_moddir){
if(todate.getTime()==NaN){
res.status(400);
res.send("Invalid time sent");
+ return;
}
var tl=urls[url].timeline;
var i;