Skip to content

Commit

Permalink
Merge pull request #6316 from getkirby/fix/6236-license-ssl-issue
Browse files Browse the repository at this point in the history
Suppress warnings e.g. if system CA is outside of open_basedir
  • Loading branch information
distantnative authored Mar 1, 2024
2 parents b6ebf92 + e981493 commit 43596df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public function __construct(string $url, array $options = [])
// use the system CA store by default if
// one has been configured in php.ini
$cainfo = ini_get('curl.cainfo');
if (empty($cainfo) === false && is_file($cainfo) === true) {

// Suppress warnings e.g. if system CA is outside of open_basedir (See: issue #6236)
if (empty($cainfo) === false && @is_file($cainfo) === true) {
$defaults['ca'] = self::CA_SYSTEM;
}

Expand Down

0 comments on commit 43596df

Please sign in to comment.