mirror of
https://github.com/yiisoft/yii2.git
synced 2026-02-20 00:32:19 +01:00
Update BaseUrl.php
This commit is contained in:
@@ -378,8 +378,7 @@ class BaseUrl
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user