Merge pull request #4154 from Icinga/fix/html-detection-again-and-again-4075

Adjust html detection in plugin output (again)
This commit is contained in:
Johannes Meyer 2020-05-14 09:06:10 +02:00 committed by GitHub
commit df70705b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,