BUGFIX Fixed regular expression to trim off last "</ul>" tag in LeftAndMain->getsubtree(), switched from deprecated ereg_replace() to preg_replace

This commit is contained in:
Ingo Schommer 2011-03-01 20:25:10 +13:00
parent 57e1c41f15
commit f53fe8193f

View File

@ -578,8 +578,8 @@ class LeftAndMain extends Controller {
);
// Trim off the outer tag
$html = ereg_replace('^[ \t\r\n]*<ul[^>]*>','', $html);
$html = ereg_replace('</ul[^>]*>[ \t\r\n]*$','', $html);
$html = preg_replace('/^[\s\t\r\n]*<ul[^>]*>/','', $html);
$html = preg_replace('/<\/ul[^>]*>[\s\t\r\n]*$/','', $html);
return $html;
}