[Pkg-owncloud-commits] [owncloud] 14/258: allow empty hostname and dots in service name for oracle autosetup
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:22:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 8b86df308bc4df0729126db55e5cde668074bd59
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Thu Aug 28 15:54:28 2014 +0200
allow empty hostname and dots in service name for oracle autosetup
---
lib/private/setup/oci.php | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/lib/private/setup/oci.php b/lib/private/setup/oci.php
index 24863b9..23b5232 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list