forked from extern/egroupware
Add string trim to fix Netscape import and debug
This commit is contained in:
parent
b1a199ae36
commit
1c1da7f852
@ -163,6 +163,7 @@ objectClass: importPerson";
|
||||
$this->givenName = $value;
|
||||
}
|
||||
|
||||
$value = trim($value);
|
||||
$value = str_replace("\n","",$value);
|
||||
$name = str_replace("\n","",$name);
|
||||
$value = str_replace("\r","",$value);
|
||||
|
@ -124,6 +124,7 @@
|
||||
}
|
||||
|
||||
function import_new_attrib($buffer,$name,$value) {
|
||||
$value = trim($value);
|
||||
$value = str_replace("\n","",$value);
|
||||
$value = str_replace("\r","",$value);
|
||||
if ($value=="") { $value="NULL"; }
|
||||
|
@ -89,6 +89,8 @@
|
||||
|
||||
function import_new_attrib($buffer,$name,$value) {
|
||||
//$value = str_replace("\n","<BR>",$value);
|
||||
// chop leading space from value
|
||||
$value = trim($value);
|
||||
$value = str_replace("\r","",$value);
|
||||
//echo '<br>'.$name.' => '.$value;
|
||||
$this->currentrecord += array($name => $value);
|
||||
|
Loading…
Reference in New Issue
Block a user