Skip to content

Commit

Permalink
Update BaseUrl.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bizley authored Jan 3, 2024
1 parent c7b4b1d commit 7ff9d77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/helpers/BaseUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ public static function home($scheme = false)
*/
public static function isRelative($url)
{
$urlComponents = parse_url($url, PHP_URL_SCHEME);
return strncmp($url, '//', 2) && empty($urlComponents);
return strncmp($url, '//', 2) && strpos($url, '://') === false;
}

/**
Expand Down

0 comments on commit 7ff9d77

Please sign in to comment.