Skip to content

Commit

Permalink
Added SSL CA parameters on new class instance
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 9, 2024
1 parent f4fe0ee commit 99eea55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/system/library/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(string $adaptor, string $hostname, string $username,
$class = 'DB\\' . $adaptor;

if (class_exists($class)) {
$this->adaptor = new $class($hostname, $username, $password, $database, $port);
$this->adaptor = new $class($hostname, $username, $password, $database, $port, $ssl_key, $ssl_cert, $ssl_ca);
} else {
throw new \Exception('Error: Could not load database adaptor ' . $adaptor . '!');
}
Expand Down

0 comments on commit 99eea55

Please sign in to comment.