[Pkg-owncloud-commits] [owncloud] 63/223: No need to check the port number as this will fail anyway.
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 3d8eabedbdb130206f5a0f9d88ec8ee25f0e9a2a
Author: Andreas Fischer <bantu at owncloud.com>
Date: Thu Jun 12 20:17:30 2014 +0200
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 a35a4f5..e911abd 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list