Fix Netscape to export base64 encoded fields as required, and fix fields in phpgw_LDIF

This commit is contained in:
Miles Lott 2001-03-23 22:00:43 +00:00
parent d2b5ae466b
commit 0f6b8c94d1
2 changed files with 8 additions and 3 deletions

View File

@ -75,6 +75,11 @@
// name/value are the fields from the export array above
function export_new_attrib($buffer,$name,$value) {
if ($this->export[$name]) {
if (strstr($value,"\n")) {
$value = ": ".base64_encode($value);
} else {
$value = " ".$value;
}
$buffer[$this->id][$this->export[$name]] = $value;
//echo '<br>'.$this->id.' - '.$this->export[$name].': '.$buffer[$this->id][$this->export[$name]];
}

View File

@ -42,8 +42,8 @@
"url" => "url",
"pubkey" => "publickey",
"org_name" => "o", // company
"org_unit" => "ou", // division
"org_name" => "phpgworgname", // company
"org_unit" => "phpgworgunit", // division
"title" => "title",
"adr_one_street" => "street",