Fix disabling SSL client verification
Issue #12146 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
1867c094d7
commit
fdec3afe1b
@ -165,11 +165,14 @@ class DBIMysqli implements DBIExtension
|
||||
* @link https://bugs.php.net/bug.php?id=68344
|
||||
* @link https://github.com/phpmyadmin/phpmyadmin/pull/11838
|
||||
*/
|
||||
mysqli_options(
|
||||
$link,
|
||||
MYSQLI_OPT_SSL_VERIFY_SERVER_CERT,
|
||||
$cfg['Server']['ssl_verify']
|
||||
);
|
||||
if (! $cfg['Server']['ssl_verify']) {
|
||||
mysqli_options(
|
||||
$link,
|
||||
MYSQLI_OPT_SSL_VERIFY_SERVER_CERT,
|
||||
$cfg['Server']['ssl_verify']
|
||||
);
|
||||
$client_flags |= MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT;
|
||||
}
|
||||
}
|
||||
|
||||
if (! $server) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user