summaryrefslogtreecommitdiffstats
path: root/lib/private/db.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-06-17 14:44:57 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-06-17 14:48:32 +0200
commit9db0a82a2666c554b3bf51621985cfd8d3c2feb9 (patch)
tree052d435d36a78fce9a842368db0bce7cc2e241cb /lib/private/db.php
parentce179dcdcb171aef4f7e84025706237b54f0340f (diff)
downloadnextcloud-server-9db0a82a2666c554b3bf51621985cfd8d3c2feb9.tar.gz
nextcloud-server-9db0a82a2666c554b3bf51621985cfd8d3c2feb9.zip
We obviously have to pass the hostname as is when there is no ':' in the hostname.
This reverts commit 73062040e68212ac6e92d36211ca0bef91777589.
Diffstat (limited to 'lib/private/db.php')
-rw-r--r--lib/private/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 8fd2ef1c6f7..6aaf31a30cd 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -78,12 +78,12 @@ class OC_DB {
// Host variable may carry a port or socket.
list($host, $portOrSocket) = explode(':', $host, 2);
if (ctype_digit($portOrSocket)) {
- $connectionParams['host'] = $host;
$connectionParams['port'] = $portOrSocket;
} else {
$connectionParams['unix_socket'] = $portOrSocket;
}
}
+ $connectionParams['host'] = $host;
$connectionParams['dbname'] = $name;
}