1
0
Fork 0

Validate disable-tls and cafile config file values

pull/2745/head
Pádraic Brady 2014-02-28 20:40:57 +00:00
parent d8cbd9f057
commit cb32c480be
2 changed files with 7 additions and 1 deletions

View File

@ -285,6 +285,11 @@ EOT
'autoloader-suffix' => array('is_string', function ($val) { return $val === 'null' ? null : $val; }),
'optimize-autoloader' => array($booleanValidator, $booleanNormalizer),
'prepend-autoloader' => array($booleanValidator, $booleanNormalizer),
'disable-tls' => array($booleanValidator, $booleanNormalizer),
'cafile' => array(
function ($val) { return file_exists($val) && is_readable($val); }
function ($val) { return $val; }
)
);
$multiConfigValues = array(
'github-protocols' => array(

View File

@ -39,7 +39,8 @@ class Config
'optimize-autoloader' => false,
'prepend-autoloader' => true,
'github-domains' => array('github.com'),
'disable-tls' => false
'disable-tls' => false,
'cafile' => null,
);
public static $defaultRepositories = array(