This commit is contained in:
the-djmaze 2022-11-11 22:50:32 +01:00
parent a13bb9e930
commit e7958fb1ed
4 changed files with 7 additions and 7 deletions

View file

@ -41,7 +41,7 @@ class Application extends \RainLoop\Config\AbstractConfig
$sCipher = $this->Get('security', 'encrypt_cipher', '');
if (!$sCipher || !\SnappyMail\Crypt::cipherSupported($sCipher)) {
$sCipher && \SnappyMail\Log::warning("OpenSSL does not support {$sCipher}");
$sCipher && \SnappyMail\Log::warning('OpenSSL', "No support for {$sCipher}");
$aCiphers = \SnappyMail\Crypt::listCiphers();
$this->Set('security', 'encrypt_cipher', $aCiphers[\array_rand($aCiphers)]);
$this->Save();