mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 17:26:25 +02:00
feat: PHP 8.4 support (#441)
This commit is contained in:
@ -183,11 +183,7 @@ class HTMLPurifier_HTMLModuleManager
|
||||
if (!$ok) {
|
||||
$module = $original_module;
|
||||
if (!class_exists($module)) {
|
||||
trigger_error(
|
||||
$original_module . ' module does not exist',
|
||||
E_USER_ERROR
|
||||
);
|
||||
return;
|
||||
throw new Exception($original_module . ' module does not exist');
|
||||
}
|
||||
}
|
||||
$module = new $module();
|
||||
|
Reference in New Issue
Block a user