Skip to content

Commit cdc1b8a

Browse files
authored
Merge pull request #20 from ashtonherrington/master
Revise condition check to make append http:// in all cases where the …
2 parents d69b59d + 5945327 commit cdc1b8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngfw/Recipe.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public static function validateURL($url)
184184
*/
185185
public static function rssReader($url)
186186
{
187-
if (strpos($url, 'http') === false) {
187+
if (strpos($url, 'http') !== 0) {
188188
$url = 'http://' . $url;
189189
}
190190

@@ -1090,7 +1090,7 @@ function CheckHash($Hashnum) {
10901090
*/
10911091
public static function getTinyUrl($url)
10921092
{
1093-
if (strpos($url, 'http') === false) {
1093+
if (strpos($url, 'http') !== 0) {
10941094
$url = 'http://' . $url;
10951095
}
10961096

0 commit comments

Comments
 (0)