Render multiline in custom variables correct

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
This commit is contained in:
Carsten Koebke 2018-06-02 13:48:58 +02:00 committed by Eric Lippmann
parent 10fa64b7e3
commit 55072ac840
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {