|
|
@ -103,7 +103,9 @@ header('Content-Type: text/x-vcard; charset='.RCUBE_CHARSET);
|
|
|
|
header('Content-Disposition: attachment; filename="contacts.vcf"');
|
|
|
|
header('Content-Disposition: attachment; filename="contacts.vcf"');
|
|
|
|
|
|
|
|
|
|
|
|
while ($result && ($row = $result->next())) {
|
|
|
|
while ($result && ($row = $result->next())) {
|
|
|
|
|
|
|
|
if ($CONTACTS) {
|
|
|
|
prepare_for_export($row, $CONTACTS);
|
|
|
|
prepare_for_export($row, $CONTACTS);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// fix folding and end-of-line chars
|
|
|
|
// fix folding and end-of-line chars
|
|
|
|
$row['vcard'] = preg_replace('/\r|\n\s+/', '', $row['vcard']);
|
|
|
|
$row['vcard'] = preg_replace('/\r|\n\s+/', '', $row['vcard']);
|
|
|
|