summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysqli/mysqli_driver.php
diff options
context:
space:
mode:
authorintekhab <me@intekhab.in>2016-09-09 12:23:40 +0200
committerintekhab <me@intekhab.in>2016-09-09 12:23:40 +0200
commit9dc8cacf71ed228452da451b2cf216a4fa6c1cd1 (patch)
tree8b19a642e06ccd93eac3bcd791c37bfe53617387 /system/database/drivers/mysqli/mysqli_driver.php
parent059b7a4e0b3da684a33d3caa54f78ed5003f4a2a (diff)
supplied flag to turn off mysqli SSL verification if ssl_verify passed as false
Diffstat (limited to 'system/database/drivers/mysqli/mysqli_driver.php')
-rw-r--r--system/database/drivers/mysqli/mysqli_driver.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/database/drivers/mysqli/mysqli_driver.php b/system/database/drivers/mysqli/mysqli_driver.php
index c26f975c4..2dc2a9710 100644
--- a/system/database/drivers/mysqli/mysqli_driver.php
+++ b/system/database/drivers/mysqli/mysqli_driver.php
@@ -184,6 +184,7 @@ class CI_DB_mysqli_driver extends CI_DB {
elseif (defined('MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT'))
{
$this->_mysqli->options(MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT, TRUE);
+ $client_flags |= MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT;
}
}