1
0
Fork 0

fix possible caBundle error

pull/4790/head
Rob Bast 2016-01-18 08:59:12 +01:00
parent ea38cf24ac
commit 22d8b5dff4
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@
namespace Composer\Util; namespace Composer\Util;
use Composer\Composer;
use Composer\Config; use Composer\Config;
use Composer\IO\IOInterface; use Composer\IO\IOInterface;
use Composer\Downloader\TransportException; use Composer\Downloader\TransportException;
@ -691,7 +690,7 @@ class RemoteFilesystem
); );
$configured = ini_get('openssl.cafile'); $configured = ini_get('openssl.cafile');
if ($configured && strlen($configured) > 0 && is_readable($caBundle) && self::validateCaFile(file_get_contents($caBundle))) { if ($configured && strlen($configured) > 0 && is_readable($configured) && self::validateCaFile(file_get_contents($configured))) {
return $caPath = $configured; return $caPath = $configured;
} }