From 4aab354b7f727518cb3390a4494c81aaf144810c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 13 May 2020 17:16:22 +0200 Subject: [PATCH] PluginOutput: Adjust html detection regex again --- 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 de9a77234..3be9fc7b1 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -95,7 +95,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract if ($command !== null) { $output = $this->hookRenderer->render($command, $output, ! $raw); } - if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) { + if (preg_match('~<\w+(?>\s\w+=[^>]*)?>~', $output)) { // HTML $output = preg_replace( self::$htmlPatterns,