fix lists from other users gave a validation error for account-display "Lastname, Firstname" because of the comma

This commit is contained in:
ralf 2023-04-18 16:27:01 +02:00
parent df63934fcc
commit 6ebbd5bb08

View File

@ -3769,7 +3769,7 @@ class mail_compose
{ {
$type = $key > 0 ? 'manual' : 'group'; $type = $key > 0 ? 'manual' : 'group';
$list = array( $list = array(
'value' => $list_name.' <'.$key.'@lists.egroupware.org>', 'value' => '"'.str_replace('"', '', $list_name).'" <'.$key.'@lists.egroupware.org>',
'label' => $list_name, 'label' => $list_name,
'title' => lang('Mailinglist'), 'title' => lang('Mailinglist'),
'icon' => Api\Image::find('api', 'email'), 'icon' => Api\Image::find('api', 'email'),