Url: Fix that full external urls with path component are incorrectly handled
fixes #10236
This commit is contained in:
parent
62d96a154e
commit
722152a876
|
@ -159,7 +159,9 @@ class Url
|
|||
if (isset($urlParts['path'])) {
|
||||
$urlPath = $urlParts['path'];
|
||||
if ($urlPath && $urlPath[0] === '/') {
|
||||
$baseUrl = '';
|
||||
if ($baseUrl) {
|
||||
$urlPath = substr($urlPath, 1);
|
||||
}
|
||||
} elseif (! $baseUrl) {
|
||||
$baseUrl = $request->getBaseUrl();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue