From: Andreas Fischer Date: Tue, 17 Jun 2014 12:44:57 +0000 (+0200) Subject: We obviously have to pass the hostname as is when there is no ':' in the hostname. X-Git-Tag: v7.0.0alpha2~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9db0a82a2666c554b3bf51621985cfd8d3c2feb9;p=nextcloud-server.git We obviously have to pass the hostname as is when there is no ':' in the hostname. This reverts commit 73062040e68212ac6e92d36211ca0bef91777589. --- 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; }