mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 05:11:52 +00:00
Gracefully deal with null injectors.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
6bdf161afd
commit
1ad8fd5ce9
@ -83,6 +83,7 @@ class HTMLPurifier_Strategy_MakeWellFormed extends HTMLPurifier_Strategy
|
|||||||
$this->injectors[] = $injector;
|
$this->injectors[] = $injector;
|
||||||
}
|
}
|
||||||
foreach ($custom_injectors as $injector) {
|
foreach ($custom_injectors as $injector) {
|
||||||
|
if (!$injector) continue;
|
||||||
if (is_string($injector)) {
|
if (is_string($injector)) {
|
||||||
$injector = "HTMLPurifier_Injector_$injector";
|
$injector = "HTMLPurifier_Injector_$injector";
|
||||||
$injector = new $injector;
|
$injector = new $injector;
|
||||||
|
Loading…
Reference in New Issue
Block a user