Url: Fix that full external urls with path component are incorrectly handled

fixes #10236
This commit is contained in:
Johannes Meyer 2015-09-30 13:41:50 +02:00
parent 62d96a154e
commit 722152a876
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}