mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
fix(user_ldap): Ensure host is a string when checking if ldapi
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
a630ee8dce
commit
b8fbd7721d
1 changed files with 2 additions and 1 deletions
|
|
@ -607,6 +607,7 @@ class Configuration {
|
|||
* Returns TRUE if the ldapHost variable starts with 'ldapi://'
|
||||
*/
|
||||
public function usesLdapi(): bool {
|
||||
return (substr($this->config['ldapHost'], 0, strlen('ldapi://')) === 'ldapi://');
|
||||
$host = $this->config['ldapHost'];
|
||||
return is_string($host) && (substr($host, 0, strlen('ldapi://')) === 'ldapi://');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue