mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 06:50:35 +01:00
Don't scare users, instead of displaying base64 encoded image in preview, just show -ENCODED IMAGE-
This commit is contained in:
parent
0b3836a9f5
commit
76064cb490
@ -278,6 +278,12 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
|
|||||||
foreach($labels as $field => $label)
|
foreach($labels as $field => $label)
|
||||||
{
|
{
|
||||||
$row[$field] = $record[$field];
|
$row[$field] = $record[$field];
|
||||||
|
|
||||||
|
// Don't scare users, do something with jpeg
|
||||||
|
if($field == 'jpegphoto' && $row[$field])
|
||||||
|
{
|
||||||
|
$row[$field] = '<span style="white-space: nowrap;">-ENCODED IMAGE-</span>';
|
||||||
|
}
|
||||||
unset($record[$field]);
|
unset($record[$field]);
|
||||||
}
|
}
|
||||||
$row += $record;
|
$row += $record;
|
||||||
|
Loading…
Reference in New Issue
Block a user