From bd02e5468c7fa0e4f78a5f14ec03ae54acbef16f Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 17 Feb 2016 11:48:34 +0100 Subject: [PATCH] PluginOutput helper: use a regex to detect HTML in plugin output fixes #10366 --- modules/monitoring/application/views/helpers/PluginOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 163dd2b14..1ccc8f866 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -33,7 +33,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract return ''; } $output = preg_replace('~]*>~', "\n", $output); - if (strlen($output) > strlen(strip_tags($output))) { + if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) { // HTML $output = preg_replace( '~