[icinga-checkins] icinga.org: icingaweb2/master: Fix double escape of `&' in navigation items

git at icinga.org git at icinga.org
Fri Feb 19 15:41:53 CET 2016


Module: icingaweb2
Branch: master
Commit: 9ef78e6856aef0110ad22a2ac6dcf3a795b6604b
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=9ef78e6856aef0110ad22a2ac6dcf3a795b6604b

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Fri Feb 19 15:38:34 2016 +0100

Fix double escape of `&' in navigation items

fixes #11190

---

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

diff --git a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
index d94aabc..09e202c 100644
--- a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
+++ b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
@@ -192,7 +192,7 @@ class NavigationItemRenderer
             $content = sprintf(
                 '<a%s href="%s"%s>%s</a>',
                 $this->view()->propertiesToString($item->getAttributes()),
-                $this->view()->escape($url),
+                $this->view()->escape($url->getAbsoluteUrl('&')),
                 $this->renderTargetAttribute(),
                 $label
             );



More information about the icinga-checkins mailing list