mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
parent
723a2091a8
commit
fff07144c3
@ -102,7 +102,6 @@ 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);
|
||||||
}
|
}
|
||||||
$output = preg_replace('~<br[^>]*>~', "\n", $output);
|
|
||||||
if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) {
|
if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) {
|
||||||
// HTML
|
// HTML
|
||||||
$output = preg_replace(
|
$output = preg_replace(
|
||||||
|
@ -92,15 +92,13 @@ class PluginOutputTest extends BaseTestCase
|
|||||||
);
|
);
|
||||||
/** @noinspection HtmlUnknownAttribute */
|
/** @noinspection HtmlUnknownAttribute */
|
||||||
$output = array(
|
$output = array(
|
||||||
'Teststatus',
|
'Teststatus ',
|
||||||
'<a href="http://localhost/test.php" target="_blank"[^>]*>Info</a>',
|
'<a href="http://localhost/test.php" target="_blank"[^>]*>Info</a><br><br>',
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'<a href="http://localhost/test2.php" target="_blank"[^>]*>Info2</a>'
|
'<a href="http://localhost/test2.php" target="_blank"[^>]*>Info2</a>'
|
||||||
);
|
);
|
||||||
$this->checkHtmlOutput(
|
$this->checkHtmlOutput(
|
||||||
join("\n", $input),
|
join("\n", $input),
|
||||||
join("\n", $output),
|
join('', $output),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user