summaryrefslogtreecommitdiffstats
path: root/lib/base.php
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 /lib/base.php
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 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index fde67839560..299970e269c 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -835,7 +835,9 @@ class OC {
// Check if ownCloud is installed or in maintenance (update) mode
if (!$systemConfig->getValue('installed', false)) {
\OC::$server->getSession()->clear();
- $setupHelper = new OC\Setup(\OC::$server->getConfig(), \OC::$server->getIniWrapper(), \OC::$server->getL10N('lib'), new \OC_Defaults());
+ $setupHelper = new OC\Setup(\OC::$server->getConfig(), \OC::$server->getIniWrapper(),
+ \OC::$server->getL10N('lib'), new \OC_Defaults(), \OC::$server->getLogger(),
+ \OC::$server->getSecureRandom());
$controller = new OC\Core\Setup\Controller($setupHelper);
$controller->run($_POST);
exit();