mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
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'])) {
|
if (isset($urlParts['path'])) {
|
||||||
$urlPath = $urlParts['path'];
|
$urlPath = $urlParts['path'];
|
||||||
if ($urlPath && $urlPath[0] === '/') {
|
if ($urlPath && $urlPath[0] === '/') {
|
||||||
$baseUrl = '';
|
if ($baseUrl) {
|
||||||
|
$urlPath = substr($urlPath, 1);
|
||||||
|
}
|
||||||
} elseif (! $baseUrl) {
|
} elseif (! $baseUrl) {
|
||||||
$baseUrl = $request->getBaseUrl();
|
$baseUrl = $request->getBaseUrl();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user