* Mail: fix S/MIME fails with addresses not written in lowercase

This commit is contained in:
Hadi Nategh 2019-03-25 17:21:27 +01:00
parent c5534288dd
commit b62a0ef8bf
2 changed files with 2 additions and 2 deletions

View File

@ -7594,7 +7594,7 @@ class Mail
$params = array (
'type' => 'message',
'pubkey' => $certkey[$acc_smime['acc_smime_username']],
'pubkey' => $certkey[strtolower($acc_smime['acc_smime_username'])],
'privkey' => $acc_smime['pkey'],
'passphrase'=> $_passphrase
);

View File

@ -3816,7 +3816,7 @@ class mail_compose
{
$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);
$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))
{