|
@@ -93,8 +93,8 @@ abstract class ArchiveDownloader extends FileDownloader
|
|
|
|
|
|
if (!extension_loaded('openssl') && (0 === strpos($url, 'https:') || 0 === strpos($url, 'http://github.com'))) {
|
|
|
// bypass https for github if openssl is disabled
|
|
|
- if (preg_match('{^https?://(github.com/[^/]+/[^/]+/(zip|tar)ball/[^/]+)$}i', $url, $match)) {
|
|
|
- $url = 'http://nodeload.'.$match[1];
|
|
|
+ if (preg_match('{^https?://github.com/([^/]+/[^/]+)/(zip|tar)ball/([^/]+)$}i', $url, $match)) {
|
|
|
+ $url = 'http://nodeload.github.com/'.$match[1].'/legacy.'.$match[2].'/'.$match[3];
|
|
|
} else {
|
|
|
throw new \RuntimeException('You must enable the openssl extension to download files via https');
|
|
|
}
|