mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
PluginOutput: Adjust html detection regex again
This commit is contained in:
parent
79343cef8b
commit
4aab354b7f
@ -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…
x
Reference in New Issue
Block a user