Fix HTML detection in PluginOutput

refs #9036
This commit is contained in:
Matthias Jentsch 2015-07-08 15:16:32 +02:00
parent fc8b51c4be
commit 39df25f043
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
if (empty($output)) {
return '';
}
$output = preg_replace('~<br[^>]+>~', "\n", $output);
if (preg_match('~<\w+[^>^\\\]{0,60}>~', $output)) {
$output = preg_replace('~<br[^>]*>~', "\n", $output);
if (strlen($output) > strlen(strip_tags($output))) {
// HTML
$output = preg_replace(
'~<table~',