From 9fcc39e0bad22cde23019bb7652f83843cdbb3dc Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Tue, 18 Oct 2016 16:15:14 +0200 Subject: [PATCH] Url: Add use of method setBasePath in method setBaseUrl refs #12133 --- library/Icinga/Web/Url.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php index 19310e622..4128a2322 100644 --- a/library/Icinga/Web/Url.php +++ b/library/Icinga/Web/Url.php @@ -385,14 +385,17 @@ class Url if (isset($urlParts["port"])) { $this->setPort($urlParts["port"]); } - if (isset($urlParts["scheme"])) { - $this->setScheme($urlParts["scheme"]); + if (isset($urlParts['scheme'])) { + $this->setScheme($urlParts['scheme']); } - if (isset($urlParts["user"])) { - $this->setUsername($urlParts["user"]); + if (isset($urlParts['user'])) { + $this->setUsername($urlParts['user']); } - if (isset($urlParts["pass"])) { - $this->setPassword($urlParts["pass"]); + if (isset($urlParts['pass'])) { + $this->setPassword($urlParts['pass']); + } + if (isset($urlParts['path'])) { + $this->setBasePath($urlParts['path']); } return $this;