Skip to content

Commit

Permalink
Merge pull request #20 from ashtonherrington/master
Browse files Browse the repository at this point in the history
Revise condition check to make append http:// in all cases where the …
  • Loading branch information
ngfw authored Sep 25, 2016
2 parents d69b59d + 5945327 commit cdc1b8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngfw/Recipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static function validateURL($url)
*/
public static function rssReader($url)
{
if (strpos($url, 'http') === false) {
if (strpos($url, 'http') !== 0) {
$url = 'http://' . $url;
}

Expand Down Expand Up @@ -1090,7 +1090,7 @@ function CheckHash($Hashnum) {
*/
public static function getTinyUrl($url)
{
if (strpos($url, 'http') === false) {
if (strpos($url, 'http') !== 0) {
$url = 'http://' . $url;
}

Expand Down

0 comments on commit cdc1b8a

Please sign in to comment.