]> source.dussan.org Git - nextcloud-server.git/commitdiff
We obviously have to pass the hostname as is when there is no ':' in the hostname.
authorAndreas Fischer <bantu@owncloud.com>
Tue, 17 Jun 2014 12:44:57 +0000 (14:44 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Tue, 17 Jun 2014 12:48:32 +0000 (14:48 +0200)
This reverts commit 73062040e68212ac6e92d36211ca0bef91777589.

lib/private/db.php

index 8fd2ef1c6f7673415599e7541113dd1495a27edc..6aaf31a30cd081edcb8b265df7f713a3dd9c4935 100644 (file)
@@ -78,12 +78,12 @@ class OC_DB {
                                // Host variable may carry a port or socket.
                                list($host, $portOrSocket) = explode(':', $host, 2);
                                if (ctype_digit($portOrSocket)) {
-                                       $connectionParams['host'] = $host;
                                        $connectionParams['port'] = $portOrSocket;
                                } else {
                                        $connectionParams['unix_socket'] = $portOrSocket;
                                }
                        }
+                       $connectionParams['host'] = $host;
                        $connectionParams['dbname'] = $name;
                }