diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 12a9b6e97..6585ae913 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -27,7 +27,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract '@@@@@@', ); - public function pluginOutput($output, $raw = false) + public function pluginOutput($output) { if (empty($output)) { return ''; @@ -48,11 +48,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract $this->view->escape($output) ); } - if (! $raw) { - $output = '
' . $output . ''; - } - $output = $this->fixLinks($output); - return $output; + return '
' . $this->fixLinks($output) . ''; } protected function fixLinks($html) diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index b697c8f6a..0d033eaad 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->pluginOutput($this->ellipsis($host->host_output, 10000), true) ?>
+= $this->escape($this->ellipsis($host->host_output, 10000)) ?>
addColumns as $col): ?>= $this->pluginOutput($this->ellipsis($service->service_output, 10000), true) ?>
+= $this->escape($this->ellipsis($service->service_output, 10000)) ?>
addColumns as $col): ?>