No need to check the port number as this will fail anyway.

This commit is contained in:
Andreas Fischer 2014-06-12 20:17:30 +02:00
parent 4ca1e3cc02
commit 3d8eabedbd
1 changed files with 1 additions and 1 deletions

View File

@ -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;