Skip to content

Commit d4aeba3

Browse files
authored
Merge pull request #189 from vivacarvajalito/master
Update LDAPUserManager.php error in split with ':'
2 parents c108656 + 9dba7c5 commit d4aeba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/LDAPUserManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function buildNewEntry($username, $password, $base) {
274274
$entry = [];
275275
$lines = explode(PHP_EOL, $ldif);
276276
foreach ($lines as $line) {
277-
$split = explode(':', $line);
277+
$split = explode(':', $line, 2);
278278
$key = trim($split[0]);
279279
$value = trim($split[1]);
280280
if (!isset($entry[$key])) {

0 commit comments

Comments
 (0)