From 09250953a70c291c0c2f0485c1ef6d5671a6ec9f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Mar 2007 06:56:51 +0000 Subject: [PATCH] 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 --- include/class_ldap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.30.2