Merge pull request #25890 from nextcloud/techdept/psalm/check_input_command
Check command input
This commit is contained in:
commit
f109cf0136
|
@ -75,6 +75,11 @@ class ListConfigs extends Base {
|
||||||
$app = $input->getArgument('app');
|
$app = $input->getArgument('app');
|
||||||
$noSensitiveValues = !$input->getOption('private');
|
$noSensitiveValues = !$input->getOption('private');
|
||||||
|
|
||||||
|
if (!is_string($app)) {
|
||||||
|
$output->writeln('<error>Invalid app value given</error>');
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
switch ($app) {
|
switch ($app) {
|
||||||
case 'system':
|
case 'system':
|
||||||
$configs = [
|
$configs = [
|
||||||
|
|
Loading…
Reference in New Issue