forked from extern/egroupware
* Mail: fix signed/encrypted S/MIME new message does not take CC or BCC fields into account
This commit is contained in:
parent
d18b1d4675
commit
cd3f380fcd
@ -3108,6 +3108,7 @@ class mail_compose
|
|||||||
// SMIME SIGN/ENCRYPTION
|
// SMIME SIGN/ENCRYPTION
|
||||||
if ($_formData['smime_sign'] == 'on' || $_formData['smime_encrypt'] == 'on' )
|
if ($_formData['smime_sign'] == 'on' || $_formData['smime_encrypt'] == 'on' )
|
||||||
{
|
{
|
||||||
|
$recipients = array_merge($_formData['to'], (array) $_formData['cc'], (array) $_formData['bcc']);
|
||||||
try {
|
try {
|
||||||
if ($_formData['smime_sign'] == 'on')
|
if ($_formData['smime_sign'] == 'on')
|
||||||
{
|
{
|
||||||
@ -3122,7 +3123,7 @@ class mail_compose
|
|||||||
$smime_success = $this->_encrypt(
|
$smime_success = $this->_encrypt(
|
||||||
$mail,
|
$mail,
|
||||||
$_formData['smime_encrypt'] == 'on'? Mail\Smime::TYPE_SIGN_ENCRYPT: Mail\Smime::TYPE_SIGN,
|
$_formData['smime_encrypt'] == 'on'? Mail\Smime::TYPE_SIGN_ENCRYPT: Mail\Smime::TYPE_SIGN,
|
||||||
Mail::stripRFC822Addresses($_formData['to']),
|
Mail::stripRFC822Addresses($recipients),
|
||||||
$identity['ident_email'],
|
$identity['ident_email'],
|
||||||
$_formData['smime_passphrase']
|
$_formData['smime_passphrase']
|
||||||
);
|
);
|
||||||
@ -3141,7 +3142,7 @@ class mail_compose
|
|||||||
$smime_success = $this->_encrypt(
|
$smime_success = $this->_encrypt(
|
||||||
$mail,
|
$mail,
|
||||||
Mail\Smime::TYPE_ENCRYPT,
|
Mail\Smime::TYPE_ENCRYPT,
|
||||||
Mail::stripRFC822Addresses($_formData['to']),
|
Mail::stripRFC822Addresses($recipients),
|
||||||
$identity['ident_email']
|
$identity['ident_email']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user