[COMPOSER] update

This commit is contained in:
Diogo Cordeiro
2019-11-16 16:51:01 +00:00
committed by Diogo Peralta Cordeiro
parent c96dafa191
commit 63669d3447
51 changed files with 1335 additions and 1050 deletions

View File

@@ -74,7 +74,12 @@ class HTMLPurifier_Lexer_DOMLex extends HTMLPurifier_Lexer
}
set_error_handler(array($this, 'muteErrorHandler'));
$doc->loadHTML($html, $options);
// loadHTML() fails on PHP 5.3 when second parameter is given
if ($options) {
$doc->loadHTML($html, $options);
} else {
$doc->loadHTML($html);
}
restore_error_handler();
$body = $doc->getElementsByTagName('html')->item(0)-> // <html>