[TASK] Empty strings are now considered missing parameter.

This commit is contained in:
Jan Philipp Timme 2013-09-16 18:53:07 +02:00
parent f72d126589
commit bf09e0f837
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ exports.reqParamsGiven = function (keys, obj) {
if(value == undefined) {
return false;
}
if(typeof(value) == "string" && value == "") {
return false;
}
}
return true;
}