mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
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>
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user