mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 06:59:46 +01:00
* Mail: fix S/MIME fails with addresses not written in lowercase
This commit is contained in:
parent
c5534288dd
commit
b62a0ef8bf
@ -7594,7 +7594,7 @@ class Mail
|
|||||||
|
|
||||||
$params = array (
|
$params = array (
|
||||||
'type' => 'message',
|
'type' => 'message',
|
||||||
'pubkey' => $certkey[$acc_smime['acc_smime_username']],
|
'pubkey' => $certkey[strtolower($acc_smime['acc_smime_username'])],
|
||||||
'privkey' => $acc_smime['pkey'],
|
'privkey' => $acc_smime['pkey'],
|
||||||
'passphrase'=> $_passphrase
|
'passphrase'=> $_passphrase
|
||||||
);
|
);
|
||||||
|
@ -3816,7 +3816,7 @@ class mail_compose
|
|||||||
{
|
{
|
||||||
$sender_cert = $AB->get_smime_keys($sender);
|
$sender_cert = $AB->get_smime_keys($sender);
|
||||||
if (!$sender_cert) throw new Exception("S/MIME Encryption failed because no certificate has been found for sender address: " . $sender);
|
if (!$sender_cert) throw new Exception("S/MIME Encryption failed because no certificate has been found for sender address: " . $sender);
|
||||||
$params['senderPubKey'] = $sender_cert[$sender];
|
$params['senderPubKey'] = $sender_cert[strtolower($sender)];
|
||||||
|
|
||||||
if (isset($sender) && ($type == Mail\Smime::TYPE_SIGN || $type == Mail\Smime::TYPE_SIGN_ENCRYPT))
|
if (isset($sender) && ($type == Mail\Smime::TYPE_SIGN || $type == Mail\Smime::TYPE_SIGN_ENCRYPT))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user