Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-06-12 22:17:30 +0400
committerAndreas Fischer <bantu@owncloud.com>2014-06-12 22:17:30 +0400
commit3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a (patch)
treea961dac174e65d6234558335ca8cf977039cf3d4 /lib/private/db.php
parent4ca1e3cc0295203f2d1bdca083b73ed56b8fa978 (diff)
No need to check the port number as this will fail anyway.
Diffstat (limited to 'lib/private/db.php')
-rw-r--r--lib/private/db.php2
1 files changed, 1 insertions, 1 deletions
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;