From 3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Thu, 12 Jun 2014 20:17:30 +0200 Subject: [PATCH] No need to check the port number as this will fail anyway. --- lib/private/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/db.php b/lib/private/db.php index a35a4f53e80..e911abd5f8b 100644 --- a/lib/private/db.php +++ b/lib/private/db.php @@ -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; -- 2.39.5