summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-06-12 20:17:30 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-06-12 20:17:30 +0200
commit3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a (patch)
treea961dac174e65d6234558335ca8cf977039cf3d4
parent4ca1e3cc0295203f2d1bdca083b73ed56b8fa978 (diff)
downloadnextcloud-server-3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a.tar.gz
nextcloud-server-3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a.zip
No need to check the port number as this will fail anyway.
-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;