Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing phar detection when forcing a cacert to system if null or true

  • Loading branch information...
commit eea92ef701a69b48d1e37fc9dd79058d41aeec93 1 parent 7074c0b
@mtdowling mtdowling authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Client.php
View
2  Client.php
@@ -75,7 +75,7 @@ public function __construct($baseUrl = '', $config = null)
// Allow ssl.certificate_authority config setting to control the certificate authority used by curl
$authority = $this->config->get(self::SSL_CERT_AUTHORITY);
// Use the system's cacert if in a phar (curl can't read from a phar stream wrapper)
- if (strpos(__FILE__, 'phar://') === false && $authority === true) {
+ if (strpos(__FILE__, 'phar://') !== false && (null === $authority || $authority === true)) {
$authority = 'system';
}
// Set the config setting to system to use the certificate authority bundle on your system
Please sign in to comment.
Something went wrong with that request. Please try again.