mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Url: Do not trim leading slahes in method setPath()
We're handling external urls specifically now.
This commit is contained in:
parent
16cdd76c9e
commit
bd206e3718
@ -75,7 +75,7 @@ class Url
|
|||||||
}
|
}
|
||||||
|
|
||||||
$url = new Url();
|
$url = new Url();
|
||||||
$url->setPath($request->getPathInfo());
|
$url->setPath(ltrim($request->getPathInfo(), '/'));
|
||||||
|
|
||||||
// $urlParams = UrlParams::fromQueryString($request->getQuery());
|
// $urlParams = UrlParams::fromQueryString($request->getQuery());
|
||||||
if (isset($_SERVER['QUERY_STRING'])) {
|
if (isset($_SERVER['QUERY_STRING'])) {
|
||||||
@ -240,7 +240,7 @@ class Url
|
|||||||
*/
|
*/
|
||||||
public function setPath($path)
|
public function setPath($path)
|
||||||
{
|
{
|
||||||
$this->path = ltrim($path, '/');
|
$this->path = $path;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user