mirror of
https://github.com/nextcloud/server.git
synced 2024-08-28 17:55:03 +02: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:
parent
04dc321ee7
commit
5b0dc6dad0
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user