aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-03-03 11:50:08 +0100
committerGitHub <noreply@github.com>2021-03-03 11:50:08 +0100
commitf109cf0136b9108b29e6236fc171b8192be5bc30 (patch)
tree042e44786fb3fca6b81a46bd0ea9e82cea230341 /core
parenta6246be34cc3238a10261915833262cfbdbace57 (diff)
parent5b0dc6dad01b50db4e994e651cc98028592fcbfb (diff)
downloadnextcloud-server-f109cf0136b9108b29e6236fc171b8192be5bc30.tar.gz
nextcloud-server-f109cf0136b9108b29e6236fc171b8192be5bc30.zip
Merge pull request #25890 from nextcloud/techdept/psalm/check_input_command
Check command input
Diffstat (limited to 'core')
-rw-r--r--core/Command/Config/ListConfigs.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Command/Config/ListConfigs.php b/core/Command/Config/ListConfigs.php
index e73c3a4831c..6fc3fe5fc0c 100644
--- a/core/Command/Config/ListConfigs.php
+++ b/core/Command/Config/ListConfigs.php
@@ -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 = [