Fix Improper Input Validation
This commit is contained in:
parent
434fb0ef2e
commit
49dbae9bb3
@ -159,7 +159,7 @@ function dockerImagesInspect(imageID, payload) {
|
||||
process.nextTick(() => {
|
||||
imageID = imageID || '';
|
||||
if (typeof imageID !== 'string') {
|
||||
resolve();
|
||||
return resolve();
|
||||
}
|
||||
const imageIDSanitized = (util.isPrototypePolluted() ? '' : util.sanitizeShellString(imageID, true)).trim();
|
||||
if (imageIDSanitized) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user