mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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) {
|
||||
$output = $this->hookRenderer->render($command, $output, ! $raw);
|
||||
}
|
||||
if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) {
|
||||
if (preg_match('~<\w+(?>\s\w+=[^>]*)?>~', $output)) {
|
||||
// HTML
|
||||
$output = preg_replace(
|
||||
self::$htmlPatterns,
|
||||
|
Loading…
x
Reference in New Issue
Block a user