We obviously have to pass the hostname as is when there is no ':' in the hostname.

This reverts commit 73062040e6.
remotes/origin/ldap_group_count
Andreas Fischer 11 years ago
parent ce179dcdcb
commit 9db0a82a26
  1. 2
      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;
}

Loading…
Cancel
Save