The origin may not be the remote host
parent
304c268c3b
commit
74aa73e841
|
@ -561,11 +561,7 @@ class RemoteFilesystem
|
||||||
|
|
||||||
// Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN
|
// 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) {
|
||||||
if (!preg_match('{^https?://}', $this->fileUrl)) {
|
$host = parse_url($this->fileUrl, PHP_URL_HOST);
|
||||||
$host = $originUrl;
|
|
||||||
} else {
|
|
||||||
$host = parse_url($this->fileUrl, PHP_URL_HOST);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($host === 'github.com' || $host === 'api.github.com') {
|
if ($host === 'github.com' || $host === 'api.github.com') {
|
||||||
$host = '*.github.com';
|
$host = '*.github.com';
|
||||||
|
|
Loading…
Reference in New Issue