Fix Improper Input Validation
This commit is contained in:
parent
8537f4c22d
commit
572d76e208
@ -485,6 +485,10 @@ function versions(apps, callback) {
|
|||||||
apps = '*';
|
apps = '*';
|
||||||
} else {
|
} else {
|
||||||
apps = apps || '*';
|
apps = apps || '*';
|
||||||
|
if (typeof apps !== 'string') {
|
||||||
|
if (callback) { callback({}); }
|
||||||
|
return resolve({});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const appsObj = checkVersionParam(apps);
|
const appsObj = checkVersionParam(apps);
|
||||||
let totalFunctions = appsObj.counter;
|
let totalFunctions = appsObj.counter;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user