1
0
Fork 0

Skip GitHub driver if openssl is disabled

pull/104/merge
Jordi Boggiano 2011-11-15 11:29:25 +01:00
parent 418e2e28f3
commit b350dda0fe
1 changed files with 1 additions and 1 deletions

View File

@ -146,6 +146,6 @@ class GitHubDriver implements VcsDriverInterface
*/
public static function supports($url, $deep = false)
{
return preg_match('#^(?:https?|git)://github\.com/([^/]+)/(.+?)(?:\.git)?$#', $url, $match);
return extension_loaded('openssl') && preg_match('#^(?:https?|git)://github\.com/([^/]+)/(.+?)(?:\.git)?$#', $url, $match);
}
}