No need to check the port number as this will fail anyway.
This commit is contained in:
parent
4ca1e3cc02
commit
3d8eabedbd
|
@ -77,7 +77,7 @@ class OC_DB {
|
|||
if (strpos($host, ':')) {
|
||||
// Host variable may carry a port or socket.
|
||||
list($host, $socket) = explode(':', $host, 2);
|
||||
if (ctype_digit($socket) && $socket <= 65535) {
|
||||
if (ctype_digit($socket)) {
|
||||
$connectionParams['port'] = $socket;
|
||||
} else {
|
||||
$connectionParams['unix_socket'] = $socket;
|
||||
|
|
Loading…
Reference in New Issue