From 55072ac840aa43826630aa65ed2fd81ca76669c7 Mon Sep 17 00:00:00 2001 From: Carsten Koebke Date: Sat, 2 Jun 2018 13:48:58 +0200 Subject: [PATCH] Render multiline in custom variables correct Signed-off-by: Eric Lippmann --- modules/monitoring/application/views/helpers/Customvar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/helpers/Customvar.php b/modules/monitoring/application/views/helpers/Customvar.php index 2a4699149..3bc06e55e 100644 --- a/modules/monitoring/application/views/helpers/Customvar.php +++ b/modules/monitoring/application/views/helpers/Customvar.php @@ -16,11 +16,11 @@ class Zend_View_Helper_Customvar extends Zend_View_Helper_Abstract public function customvar($struct) { if (is_scalar($struct)) { - return $this->view->escape( + return $this->view->nl2br($this->view->escape( is_string($struct) ? $struct : var_export($struct, true) - ); + )); } elseif (is_array($struct)) { return $this->renderArray($struct); } elseif (is_object($struct)) {