X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/c5fb118236c472237ac1fc43b0eb9a98d56b98f1..f92fbaf636d620a0092fff8b715be9a493547b4f:/src/phorkie/HtmlParser.php diff --git a/src/phorkie/HtmlParser.php b/src/phorkie/HtmlParser.php index d613452..b8cd1af 100644 --- a/src/phorkie/HtmlParser.php +++ b/src/phorkie/HtmlParser.php @@ -44,7 +44,8 @@ class HtmlParser if ($scheme == 'https' && isset($arUrl['host']) && $arUrl['host'] == 'gist.github.com' ) { - //https://gist.github.com/maddy2101/5764473 + //https://gist.github.com/cweiske/2400389 + // clone URL: https://gist.github.com/2400389.git $parts = explode('/', ltrim($arUrl['path'], '/')); if (count($parts == 2)) { //we only want the number, not the user name @@ -54,10 +55,10 @@ class HtmlParser } $title = $this->getHtmlTitle($url); if ($title === null) { - $this->arGitUrls[][] = 'git://gist.github.com/' + $this->arGitUrls[][] = 'https://gist.github.com/' . $path . '.git'; } else { - $this->arGitUrls[$title][] = 'git://gist.github.com/' + $this->arGitUrls[$title][] = 'https://gist.github.com/' . $path . '.git'; } return true;