From b31581a53c28ddd0444c5c72dae5ef87c784906e Mon Sep 17 00:00:00 2001 From: Miles Lott <milosch@alumni.egroupware.org> Date: Sun, 19 Oct 2003 07:47:08 +0000 Subject: [PATCH] Fix Netscape import (ldif) to perform strtolower() on fieldname - Mozilla at least sends givenName --- addressbook/inc/import/Import_from_Netscape | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addressbook/inc/import/Import_from_Netscape b/addressbook/inc/import/Import_from_Netscape index 8e8f8182b3..cb5202b3e5 100644 --- a/addressbook/inc/import/Import_from_Netscape +++ b/addressbook/inc/import/Import_from_Netscape @@ -60,7 +60,7 @@ function import_start_record($buffer) { - $top=array(); + $top = array(); ++$this->id; $this->currentrecord = $top; return $buffer; @@ -79,8 +79,8 @@ function import_end_record($buffer) { - $buffer[$this->id]=''; - while ( list($name, $value) = each($this->currentrecord)) + $buffer[$this->id] = ''; + while(list($name, $value) = each($this->currentrecord)) { $buffer[$this->id][$name] = $value; /* echo '<br>'.$this->id.': '.$name.' => '.$value; */ @@ -92,9 +92,9 @@ { $contacts = CreateObject('phpgwapi.contacts'); /* echo '<br>'; */ - for ($i=1;$i<=count($buffer);$i++) + for($i=1;$i<=count($buffer);$i++) { - while ( list($name,$value) = @each($buffer[$i]) ) + while(list($name,$value) = @each($buffer[$i])) { /* echo '<br>'.$i.': '.$name.' => '.$value; */ $entry[$i][$name] = $value;