Identify perfdata containing html markup properly

refs #9036
This commit is contained in:
Matthias Jentsch 2015-07-06 14:43:32 +02:00
parent aecfb2eb97
commit 9d2f0be24c
1 changed files with 2 additions and 2 deletions

View File

@ -27,13 +27,13 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
'@@@@@@',
);
public function pluginOutput($output)
public function pluginOutput($output, $raw = false)
{
if (empty($output)) {
return '';
}
$output = preg_replace('~<br[^>]+>~', "\n", $output);
if (preg_match('~<\w+[^>^\\\]{,60}>~', $output)) {
if (preg_match('~<\w+[^>^\\\]{0,60}>~', $output)) {
// HTML
$output = preg_replace('~<table~', '<table style="font-size: 0.75em"',
$this->getPurifier()->purify($output)