From 5b0dc6dad01b50db4e994e651cc98028592fcbfb Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 2 Mar 2021 19:41:35 +0100 Subject: [PATCH] Check command input For #25839 We should check this else it crashed hard. Better to be gracefull. Signed-off-by: Roeland Jago Douma --- core/Command/Config/ListConfigs.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Command/Config/ListConfigs.php b/core/Command/Config/ListConfigs.php index e73c3a4831..6fc3fe5fc0 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('Invalid app value given'); + return 1; + } + switch ($app) { case 'system': $configs = [