Update BaseUrl.php

This commit is contained in:
Bizley
2024-01-03 11:44:07 +01:00
committed by GitHub
parent c7b4b1dcdd
commit 7ff9d77961

View File

@@ -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;
}
/**