From 924a5802977cbdcab24c1bfeae91f5a6e8506a85 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 16 Apr 2019 10:10:46 +0200 Subject: [PATCH] Customvar: Transform only real newlines to `
` fixes #3636 --- 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 3bc06e55e..168c18b38 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->nl2br($this->view->escape( + return nl2br($this->view->escape( is_string($struct) ? $struct : var_export($struct, true) - )); + ), false); } elseif (is_array($struct)) { return $this->renderArray($struct); } elseif (is_object($struct)) {