1
0
Fork 0

Do not set TLS options on local URLs

pull/4798/head
Chris Smith 2016-01-24 19:10:11 +00:00
parent 74aa73e841
commit b32aad8439
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ class RemoteFilesystem
$tlsOptions = array();
// Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN
if ($this->disableTls === false && PHP_VERSION_ID < 50600) {
if ($this->disableTls === false && PHP_VERSION_ID < 50600 && !stream_is_local($this->fileUrl)) {
$host = parse_url($this->fileUrl, PHP_URL_HOST);
if ($host === 'github.com' || $host === 'api.github.com') {