]> source.dussan.org Git - nextcloud-server.git/commitdiff
No need to check the port number as this will fail anyway.
authorAndreas Fischer <bantu@owncloud.com>
Thu, 12 Jun 2014 18:17:30 +0000 (20:17 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Thu, 12 Jun 2014 18:17:30 +0000 (20:17 +0200)
lib/private/db.php

index a35a4f53e80e274ae5ad38f3bb6f6b2e3217dcd7..e911abd5f8b6b7d1953f67b80aa87c22a5324d8e 100644 (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;