diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 8f96ac67b..0a328b126 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -40,11 +40,14 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract ); } else { // Plaintext - $output = '
' . preg_replace( + $output = preg_replace( self::$txtPatterns, self::$txtReplacements, $this->view->escape($output) - ) . ''; + ); + } + if (! $raw) { + $output = '
' . $output . ''; } $output = $this->fixLinks($output); return $output; diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index 0d033eaad..b697c8f6a 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -90,7 +90,7 @@ if (count($hosts) === 0) { ) ) ?>) -
= $this->escape($this->ellipsis($host->host_output, 10000)) ?>
+= $this->pluginOutput($this->ellipsis($host->host_output, 10000), true) ?>
addColumns as $col): ?>= $this->escape($this->ellipsis($service->service_output, 10000)) ?>
+= $this->pluginOutput($this->ellipsis($service->service_output, 10000), true) ?>
addColumns as $col): ?>