diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-30 00:04:30 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-30 00:04:30 +0200 |
commit | c3cac887f57278a21052391c99b37a6dfb8cef9f (patch) | |
tree | 0077fa36f73ca655b19484d8fac9a501f83ff282 /lib/private/util.php | |
parent | 114f128fc302cb65a85937e197d2ff2215e8164c (diff) | |
download | nextcloud-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/private/util.php')
-rw-r--r-- | lib/private/util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 39d64952dc6..1b22e03ca6f 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -567,7 +567,8 @@ class OC_Util { } $webServerRestart = false; - $setup = new \OC\Setup($config, \OC::$server->getIniWrapper(), \OC::$server->getL10N('lib'), new \OC_Defaults()); + $setup = new \OC\Setup($config, \OC::$server->getIniWrapper(), \OC::$server->getL10N('lib'), + new \OC_Defaults(), \OC::$server->getLogger(), \OC::$server->getSecureRandom()); $availableDatabases = $setup->getSupportedDatabases(); if (empty($availableDatabases)) { $errors[] = array( |