|
@@ -50,7 +50,7 @@ class GitHubDriver extends VcsDriver
|
|
|
preg_match('#^(?:(?:https?|git)://([^/]+)/|git@([^:]+):/?)([^/]+)/(.+?)(?:\.git|/)?$#', $this->url, $match);
|
|
|
$this->owner = $match[3];
|
|
|
$this->repository = $match[4];
|
|
|
- $this->originUrl = !empty($match[1]) ? $match[1] : $match[2];
|
|
|
+ $this->originUrl = strtolower(!empty($match[1]) ? $match[1] : $match[2]);
|
|
|
if ($this->originUrl === 'www.github.com') {
|
|
|
$this->originUrl = 'github.com';
|
|
|
}
|
|
@@ -272,7 +272,7 @@ class GitHubDriver extends VcsDriver
|
|
|
}
|
|
|
|
|
|
$originUrl = !empty($matches[2]) ? $matches[2] : $matches[3];
|
|
|
- if (!in_array(preg_replace('{^www\.}i', '', $originUrl), $config->get('github-domains'))) {
|
|
|
+ if (!in_array(strtolower(preg_replace('{^www\.}i', '', $originUrl)), $config->get('github-domains'))) {
|
|
|
return false;
|
|
|
}
|
|
|
|