diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-01-05 22:50:36 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-01-05 22:50:36 +0100 |
commit | 468e0f73f38ae64f912de3b9ac249b3b1198e76a (patch) | |
tree | aa59890acb8a3c903ff9a8a5d9898be8ef9354d9 /modules | |
parent | da9c57e5361e0592282f83ab1624fec33784dd4f (diff) |
changes: Fix not returning on error
Diffstat (limited to 'modules')
-rw-r--r-- | modules/changes/changes.js | 2 |
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; |