From: Christian Weiske Date: Thu, 21 Nov 2013 06:21:47 +0000 (+0100) Subject: allow remote forking of HTTP and HTTPS URLs X-Git-Tag: v0.4.0~65 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/f92de25cd3760271ea81fcdc5809b64f5f8f2247 allow remote forking of HTTP and HTTPS URLs --- diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php index 7f6129d..8784e8e 100644 --- a/src/phorkie/ForkRemote.php +++ b/src/phorkie/ForkRemote.php @@ -148,7 +148,9 @@ class ForkRemote public function isSupported($url) { - return parse_url($url, PHP_URL_SCHEME) == 'git'; + $scheme = parse_url($url, PHP_URL_SCHEME); + return $scheme == 'git' + || $scheme == 'http' || $scheme == 'https'; } }