From 468e0f73f38ae64f912de3b9ac249b3b1198e76a Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 5 Jan 2017 22:50:36 +0100 Subject: changes: Fix not returning on error --- modules/changes/changes.js | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3-70-g09d2