mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21:52 +00:00
issue-256: Fix PHP 7.3 compatibility issues (#266)
This commit is contained in:
parent
15258fd24e
commit
4285590c90
@ -7,9 +7,10 @@
|
||||
* Must be separate to prevent deprecation warning on PHP 7.2
|
||||
*/
|
||||
|
||||
function __autoload($class)
|
||||
spl_autoload_register(function($class)
|
||||
{
|
||||
return HTMLPurifier_Bootstrap::autoload($class);
|
||||
return HTMLPurifier_Bootstrap::autoload($class);
|
||||
}
|
||||
});
|
||||
|
||||
// vim: et sw=4 sts=4
|
||||
|
@ -257,8 +257,9 @@ class HTMLPurifier_HTMLModule
|
||||
*/
|
||||
public function makeLookup($list)
|
||||
{
|
||||
$args = func_get_args();
|
||||
if (is_string($list)) {
|
||||
$list = func_get_args();
|
||||
$list = $args;
|
||||
}
|
||||
$ret = array();
|
||||
foreach ($list as $value) {
|
||||
|
Loading…
Reference in New Issue
Block a user