summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorThomas Pulzer <t.pulzer@kniel.de>2016-07-06 11:31:28 +0200
committerThomas Pulzer <t.pulzer@kniel.de>2016-07-06 11:31:28 +0200
commit0638937ada237f6bd05620dfb16cfa17c6b971b7 (patch)
tree1cc2cbdc78912138964af0f62bdcd030f165b86c /core/Command
parentd367318088c2044427a574b1e42c48deade1bec3 (diff)
downloadnextcloud-server-0638937ada237f6bd05620dfb16cfa17c6b971b7.tar.gz
nextcloud-server-0638937ada237f6bd05620dfb16cfa17c6b971b7.zip
Changed the input option for database-port to required when parameter was provided.
Added casting database port to int for input sanitation in pgsql and oci connections.
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Maintenance/Install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php
index 320405cad39..cee0c60b488 100644
--- a/core/Command/Maintenance/Install.php
+++ b/core/Command/Maintenance/Install.php
@@ -50,7 +50,7 @@ class Install extends Command {
->addOption('database', null, InputOption::VALUE_REQUIRED, 'Supported database type', 'sqlite')
->addOption('database-name', null, InputOption::VALUE_REQUIRED, 'Name of the database')
->addOption('database-host', null, InputOption::VALUE_REQUIRED, 'Hostname of the database', 'localhost')
- ->addOption('database-port', null, InputOption::VALUE_OPTIONAL, 'Port the database is listening on')
+ ->addOption('database-port', null, InputOption::VALUE_REQUIRED, 'Port the database is listening on')
->addOption('database-user', null, InputOption::VALUE_REQUIRED, 'User name to connect to the database')
->addOption('database-pass', null, InputOption::VALUE_OPTIONAL, 'Password of the database user', null)
->addOption('database-table-prefix', null, InputOption::VALUE_OPTIONAL, 'Prefix for all tables (default: oc_)', null)