Merge pull request #3468 from Mikesch-mp/multiline_custom_vars

Render multiline in custom variables correct.
This commit is contained in:
Eric Lippmann 2018-07-05 13:31:47 +02:00 committed by GitHub
commit 04913f3699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)) {