aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-02 19:41:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-02 19:41:35 +0100
commit5b0dc6dad01b50db4e994e651cc98028592fcbfb (patch)
treee83f09b3d703ed5a7798f2725b4afa72fb6849b4 /core/Command
parent04dc321ee732afb95dee8ddc226fd3dc0bd9fd64 (diff)
downloadnextcloud-server-5b0dc6dad01b50db4e994e651cc98028592fcbfb.tar.gz
nextcloud-server-5b0dc6dad01b50db4e994e651cc98028592fcbfb.zip
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>
Diffstat (limited to 'core/Command')
-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 = [