mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix Netscape import (ldif) to perform strtolower() on fieldname - Mozilla at least sends givenName
This commit is contained in:
parent
454c0c12c2
commit
b31581a53c
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
function import_start_record($buffer)
|
function import_start_record($buffer)
|
||||||
{
|
{
|
||||||
$top=array();
|
$top = array();
|
||||||
++$this->id;
|
++$this->id;
|
||||||
$this->currentrecord = $top;
|
$this->currentrecord = $top;
|
||||||
return $buffer;
|
return $buffer;
|
||||||
@ -79,8 +79,8 @@
|
|||||||
|
|
||||||
function import_end_record($buffer)
|
function import_end_record($buffer)
|
||||||
{
|
{
|
||||||
$buffer[$this->id]='';
|
$buffer[$this->id] = '';
|
||||||
while ( list($name, $value) = each($this->currentrecord))
|
while(list($name, $value) = each($this->currentrecord))
|
||||||
{
|
{
|
||||||
$buffer[$this->id][$name] = $value;
|
$buffer[$this->id][$name] = $value;
|
||||||
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
|
/* echo '<br>'.$this->id.': '.$name.' => '.$value; */
|
||||||
@ -92,9 +92,9 @@
|
|||||||
{
|
{
|
||||||
$contacts = CreateObject('phpgwapi.contacts');
|
$contacts = CreateObject('phpgwapi.contacts');
|
||||||
/* echo '<br>'; */
|
/* 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; */
|
/* echo '<br>'.$i.': '.$name.' => '.$value; */
|
||||||
$entry[$i][$name] = $value;
|
$entry[$i][$name] = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user