-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP: better check for emptiness, fixes #3815 #3816
Conversation
👍 |
@blizzz what about fixing this within readConfiguration() and only write the proper value into $this->config? |
@blizzz May be fix readConfiguration instead? core/apps/user_ldap/lib/connection.php Line 496 in 4797f9d
|
@DeepDiver1975 considered it too, but reading is reading and validating is validating. Won't look too nice either way. @VicDeo true, but it can only happen, if the Base DN is array([0] => ''), the user and group bases would have been adjusted. Will fix it. Good catch! |
have a better idea for doing it in readConfiguration indeed |
@DeepDiver1975 @VicDeo what do you think? Lovely? |
👍 |
👍 as soon as test build is complete |
LDAP: better check for emptiness, fixes #3815
Port to master: 5387e5c |
preg_split returns an array with one (empty) element, if an empty string (or null) is passed.
Reviewers please @FlorinPeter @DeepDiver1975 @bartv2 or others