From: Christian Weiske Date: Wed, 24 Oct 2012 13:16:09 +0000 (+0200) Subject: check for empty fork url X-Git-Tag: v0.4.0~106 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/f1d6f647c38d0ebf78f812bf551e0ab2b4f48a70 check for empty fork url --- diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php index 76eec05..78c3caa 100644 --- a/src/phorkie/ForkRemote.php +++ b/src/phorkie/ForkRemote.php @@ -22,6 +22,11 @@ class ForkRemote public function parse() { + if ($this->url == '') { + $this->error = 'Empty fork URL'; + return false; + } + $arUrl = parse_url($this->url); $scheme = isset($arUrl['scheme']) ? $arUrl['scheme'] : '';