From 39df25f043f457ebe2ea678eb4f0282207ae11e7 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Wed, 8 Jul 2015 15:16:32 +0200 Subject: [PATCH] Fix HTML detection in PluginOutput refs #9036 --- modules/monitoring/application/views/helpers/PluginOutput.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 12a9b6e97..4b401a795 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -32,8 +32,8 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract if (empty($output)) { return ''; } - $output = preg_replace('~]+>~', "\n", $output); - if (preg_match('~<\w+[^>^\\\]{0,60}>~', $output)) { + $output = preg_replace('~]*>~', "\n", $output); + if (strlen($output) > strlen(strip_tags($output))) { // HTML $output = preg_replace( '~