summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6c19c5)
raw | patch | inline | side by side (parent: e6c19c5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Mar 2007 06:56:51 +0000 (06:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Mar 2007 06:56:51 +0000 (06:56 +0000) |
Values containing colons were not imported correctly.
closes #24
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5916 594d385d-05f5-0310-b6e9-bd551577e9d8
closes #24
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5916 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ldap.inc | patch | blob | history |
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 49ae221547f322c620710745d3765e2d54bc7307..ea5d4f756ded8625aed59d8b2b9b7ec6bc91641d 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
@@ -991,7 +991,7 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec
$ndn = split("#", $lineone[0]);
$line = $ndn[1];
- $dnn = split (":",$line);
+ $dnn = split (":",$line,2);
$current_line = $ndn[0];
$dn = $dnn[0];
$value = $dnn[1];
@@ -1060,7 +1060,7 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec
}
/* Split the line into attribute and value */
- $attr = split(":", $row);
+ $attr = split(":", $row,2);
$attr[0]= trim($attr[0]); /* attribute */
$attr[1]= trim($attr[1]); /* value */