From: hickert Date: Thu, 29 Mar 2007 06:56:51 +0000 (+0000) Subject: Fixed ldif import. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=09250953a70c291c0c2f0485c1ef6d5671a6ec9f;p=gosa.git Fixed ldif import. 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 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 49ae22154..ea5d4f756 100644 --- 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 */