summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-30 00:04:30 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-30 00:04:30 +0200
commitc3cac887f57278a21052391c99b37a6dfb8cef9f (patch)
tree0077fa36f73ca655b19484d8fac9a501f83ff282 /core/command
parent114f128fc302cb65a85937e197d2ff2215e8164c (diff)
downloadnextcloud-server-c3cac887f57278a21052391c99b37a6dfb8cef9f.tar.gz
nextcloud-server-c3cac887f57278a21052391c99b37a6dfb8cef9f.zip
- more injection
- less static calls - use params on sql queries - handle sql exception on database and user creation gracefully
Diffstat (limited to 'core/command')
-rw-r--r--core/command/maintenance/install.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/command/maintenance/install.php b/core/command/maintenance/install.php
index 2fea5add438..7f5d9cae647 100644
--- a/core/command/maintenance/install.php
+++ b/core/command/maintenance/install.php
@@ -61,7 +61,10 @@ class Install extends Command {
protected function execute(InputInterface $input, OutputInterface $output) {
// validate the environment
- $setupHelper = new Setup($this->config, \OC::$server->getIniWrapper(), \OC::$server->getL10N('lib'), new \OC_Defaults());
+ $server = \OC::$server;
+ $setupHelper = new Setup($this->config, $server->getIniWrapper(),
+ $server->getL10N('lib'), new \OC_Defaults(), $server->getLogger(),
+ $server->getSecureRandom());
$sysInfo = $setupHelper->getSystemInfo(true);
$errors = $sysInfo['errors'];
if (count($errors) > 0) {