[icinga-checkins] icinga.org: icingaweb2-module-director/master: ShowController: allow for " better" exceptions...

git at icinga.org git at icinga.org
Wed May 25 15:37:16 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: c91919a1c208a49740befdfe81a1a4ef6da152c4
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=c91919a1c208a49740befdfe81a1a4ef6da152c4

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed May 25 15:36:56 2016 +0200

ShowController: allow for "better" exceptions...

...when rendering objects

---

 application/controllers/ShowController.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/controllers/ShowController.php b/application/controllers/ShowController.php
index edf4737..7b7439c 100644
--- a/application/controllers/ShowController.php
+++ b/application/controllers/ShowController.php
@@ -140,7 +140,7 @@ class ShowController extends ActionController
             . ' <pre'
             . ($object->disabled === 'y' ? ' class="disabled"' : '')
             . '>'
-            . $this->view->escape((string) $object)
+            . $this->view->escape($object->toConfigString())
             . '</pre>';
     }
 



More information about the icinga-checkins mailing list