Validate disable-tls and cafile config file values

main
Pádraic Brady 10 years ago
parent d8cbd9f057
commit cb32c480be

@ -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(

@ -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(

Loading…
Cancel
Save