Don't scare users, instead of displaying base64 encoded image in preview, just show -ENCODED IMAGE-

This commit is contained in:
Nathan Gray 2012-11-21 18:08:52 +00:00
parent 0b3836a9f5
commit 76064cb490

View File

@ -278,6 +278,12 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
foreach($labels as $field => $label)
{
$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]);
}
$row += $record;