Check command input

For #25839

We should check this else it crashed hard. Better to be gracefull.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-03-02 19:41:35 +01:00
parent 04dc321ee7
commit 5b0dc6dad0
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ class ListConfigs extends Base {
$app = $input->getArgument('app');
$noSensitiveValues = !$input->getOption('private');
if (!is_string($app)) {
$output->writeln('<error>Invalid app value given</error>');
return 1;
}
switch ($app) {
case 'system':
$configs = [