summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-08-28 15:54:28 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-08-28 15:54:28 +0200
commit25524e03c4876b633448da6aad3147a830bb26ef (patch)
treeb79661f104b4c0b82ac0da31d535dc0dcf73d6d8 /lib/private
parentda1d4bf4fd6a39fd5c1380e2753b526f444c1d22 (diff)
downloadnextcloud-server-25524e03c4876b633448da6aad3147a830bb26ef.tar.gz
nextcloud-server-25524e03c4876b633448da6aad3147a830bb26ef.zip
allow empty hostname and dots in service name for oracle autosetup
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/setup/oci.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/setup/oci.php b/lib/private/setup/oci.php
index 24863b9e38a..23b5232438a 100644
--- a/lib/private/setup/oci.php
+++ b/lib/private/setup/oci.php
@@ -14,9 +14,23 @@ class OCI extends AbstractDatabase {
} else {
$this->dbtablespace = 'USERS';
}
+ // allow empty hostname for oracle
+ $this->dbhost = $config['dbhost'];
+ \OC_Config::setValue('dbhost', $this->dbhost);
\OC_Config::setValue('dbtablespace', $this->dbtablespace);
}
+ public function validate($config) {
+ $errors = array();
+ if(empty($config['dbuser'])) {
+ $errors[] = $this->trans->t("%s enter the database username.", array($this->dbprettyname));
+ }
+ if(empty($config['dbname'])) {
+ $errors[] = $this->trans->t("%s enter the database name.", array($this->dbprettyname));
+ }
+ return $errors;
+ }
+
public function setupDatabase($username) {
$e_host = addslashes($this->dbhost);
$e_dbname = addslashes($this->dbname);