Fix Improper Input Validation

This commit is contained in:
effectrenan 2021-04-08 00:04:25 -03:00
parent 8537f4c22d
commit 572d76e208

View File

@ -485,6 +485,10 @@ function versions(apps, callback) {
apps = '*';
} else {
apps = apps || '*';
if (typeof apps !== 'string') {
if (callback) { callback({}); }
return resolve({});
}
}
const appsObj = checkVersionParam(apps);
let totalFunctions = appsObj.counter;