Browse Source

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

Check command input
tags/v22.0.0beta1
Lukas Reschke 3 years ago
parent
commit
f109cf0136
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      core/Command/Config/ListConfigs.php

+ 5
- 0
core/Command/Config/ListConfigs.php 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 = [

Loading…
Cancel
Save