[icinga-checkins] icinga.org: icingaweb2/bugfix/ username-and-password-not-being-passed-in-navigation-item-urls-12133: Url: Cut of "/" and spaces at the end of basePath in setBasePath

git at icinga.org git at icinga.org
Tue Oct 18 16:19:42 CEST 2016


Module: icingaweb2
Branch: bugfix/username-and-password-not-being-passed-in-navigation-item-urls-12133
Commit: b4aca4737b83cb13d8ebd4a1f77ca14315fd3631
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=b4aca4737b83cb13d8ebd4a1f77ca14315fd3631

Author: Noah Hilverling <noah.hilverling at netways.de>
Date:   Tue Oct 18 16:08:34 2016 +0200

Url: Cut of "/" and spaces at the end of basePath in setBasePath

refs #12133

---

 library/Icinga/Web/Url.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php
index cefbdf5..742002b 100644
--- a/library/Icinga/Web/Url.php
+++ b/library/Icinga/Web/Url.php
@@ -281,7 +281,7 @@ class Url
      */
     public function setBasePath($basePath)
     {
-        $this->basePath = $basePath;
+        $this->basePath = rtrim($basePath, '/ ');
         return $this;
     }
 



More information about the icinga-checkins mailing list