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:
commit
df70705b4d
|
@ -95,7 +95,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
||||||
if ($command !== null) {
|
if ($command !== null) {
|
||||||
$output = $this->hookRenderer->render($command, $output, ! $raw);
|
$output = $this->hookRenderer->render($command, $output, ! $raw);
|
||||||
}
|
}
|
||||||
if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) {
|
if (preg_match('~<\w+(?>\s\w+=[^>]*)?>~', $output)) {
|
||||||
// HTML
|
// HTML
|
||||||
$output = preg_replace(
|
$output = preg_replace(
|
||||||
self::$htmlPatterns,
|
self::$htmlPatterns,
|
||||||
|
|
Loading…
Reference in New Issue