diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 19:41:35 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 19:41:35 +0100 |
commit | 5b0dc6dad01b50db4e994e651cc98028592fcbfb (patch) | |
tree | e83f09b3d703ed5a7798f2725b4afa72fb6849b4 /core/Command | |
parent | 04dc321ee732afb95dee8ddc226fd3dc0bd9fd64 (diff) | |
download | nextcloud-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.php | 5 |
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 = [ |