MDL-23097 latest htmlpurifier 4.1.1

This commit is contained in:
Petr Skoda
2010-07-05 21:09:54 +00:00
parent 616861ff34
commit 2e23ad80c4
11 changed files with 94 additions and 60 deletions
+9 -1
View File
@@ -267,7 +267,15 @@ class HTMLPurifier_Lexer
// extract body from document if applicable
if ($config->get('Core.ConvertDocumentToFragment')) {
$html = $this->extractBody($html);
$e = false;
if ($config->get('Core.CollectErrors')) {
$e =& $context->get('ErrorCollector');
}
$new_html = $this->extractBody($html);
if ($e && $new_html != $html) {
$e->send(E_WARNING, 'Lexer: Extracted body');
}
$html = $new_html;
}
// expand entities that aren't the big five