Merge pull request #25890 from nextcloud/techdept/psalm/check_input_command

Check command input
This commit is contained in:
Lukas Reschke 2021-03-03 11:50:08 +01:00 committed by GitHub
commit f109cf0136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = [