aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/HtmlParser.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-05-06 21:17:19 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-05-06 21:17:19 +0200
commit38aa0dc6133ff53d20fd9f714eb380809c8dba67 (patch)
treee1189c99d8bf65d84dbd41d91579e289dbb51f30 /src/phorkie/HtmlParser.php
parent626d7bf0f5cd7d40826c351063cbb1f705104842 (diff)
downloadphorkie-38aa0dc6133ff53d20fd9f714eb380809c8dba67.tar.gz
phorkie-38aa0dc6133ff53d20fd9f714eb380809c8dba67.zip
fix gist.github.com clone urls
Diffstat (limited to 'src/phorkie/HtmlParser.php')
-rw-r--r--src/phorkie/HtmlParser.php7
1 files changed, 4 insertions, 3 deletions
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;