diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-11 15:16:54 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-11 15:16:54 +0100 |
commit | da61c6ef72abd54d98e9b1aa4300dba6a0eff3f0 (patch) | |
tree | ed73bb12812830ee08dd403fd4a6d5555bf32402 /apps/user_ldap/lib | |
parent | ea9f392f4e571bac223f0e8b0c5ee122b16ac76a (diff) | |
download | nextcloud-server-da61c6ef72abd54d98e9b1aa4300dba6a0eff3f0.tar.gz nextcloud-server-da61c6ef72abd54d98e9b1aa4300dba6a0eff3f0.zip |
LDAP Wizard: determine port without credentials. don't hide the port input field
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/wizard.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php index 7e8ea0696a7..0b2a6a540ff 100644 --- a/apps/user_ldap/lib/wizard.php +++ b/apps/user_ldap/lib/wizard.php @@ -995,9 +995,9 @@ class Wizard extends LDAPUtility { //In case the port is already provided, we will check this first if($port > 0) { $hostInfo = parse_url($host); - if(is_array($hostInfo) + if(!(is_array($hostInfo) && isset($hostInfo['scheme']) - && stripos($hostInfo['scheme'], 'ldaps') === false) { + && stripos($hostInfo['scheme'], 'ldaps') !== false)) { $portSettings[] = array('port' => $port, 'tls' => true); } $portSettings[] =array('port' => $port, 'tls' => false); |