mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix $host var handling to avoid passing null to ldap_connect
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
3dedfd34b9
commit
5242a78994
1 changed files with 2 additions and 2 deletions
|
|
@ -1049,8 +1049,8 @@ class Wizard extends LDAPUtility {
|
|||
private function connectAndBind(int $port, bool $tls): bool {
|
||||
//connect, does not really trigger any server communication
|
||||
$host = $this->configuration->ldapHost;
|
||||
$hostInfo = parse_url($host);
|
||||
if (!$hostInfo) {
|
||||
$hostInfo = parse_url((string)$host);
|
||||
if (!is_string($host) || !$hostInfo) {
|
||||
throw new \Exception(self::$l->t('Invalid Host'));
|
||||
}
|
||||
$this->logger->debug(
|
||||
|
|
|
|||
Loading…
Reference in a new issue