[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

View File

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