Skip to content

Commit

Permalink
Resolve #1205
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Jul 10, 2023
1 parent c669a8e commit 76e82ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snappymail/v/0.0.0/app/libraries/RainLoop/Pdo/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ protected function getPDO() : \PDO
if ($oSettings->sslCa) {
$options[\PDO::MYSQL_ATTR_SSL_CA] = $oSettings->sslCa;
}
$options[\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $oSettings->sslVerify;
// PHP 8.0 https://github.com/the-djmaze/snappymail/issues/1205
if (\defined('PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT')) {
$options[\PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $oSettings->sslVerify;
}
if ($oSettings->sslCiphers) {
$options[\PDO::MYSQL_ATTR_SSL_CIPHER] = $oSettings->sslCiphers;
}
Expand Down

0 comments on commit 76e82ba

Please sign in to comment.