mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 00:27:30 +00:00
Catch bad SSL config
This commit is contained in:
@@ -50,7 +50,8 @@ $mysql_ssl_ciphers = envNonEmpty('MYSQL_SSL_CIPHER', null);
|
||||
$mysql_ssl_verify = envNonEmpty('MYSQL_SSL_VERIFY_SERVER_CERT', null);
|
||||
|
||||
$mySqlSSLOptions = [];
|
||||
if (false !== envNonEmpty('MYSQL_USE_SSL', false)) {
|
||||
$useSSL = envNonEmpty('MYSQL_USE_SSL', false);
|
||||
if (false !== $useSSL && null !== $useSSL) {
|
||||
if (null !== $mysql_ssl_ca_dir) {
|
||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CAPATH] = $mysql_ssl_ca_dir;
|
||||
}
|
||||
|
Reference in New Issue
Block a user