1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-10 01:06:20 +02:00

Fix bug with anonymous module and the SafeObject/SafeEmbed modules.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang
2008-08-31 19:06:25 -04:00
parent d9e60350d3
commit 9977350143
2 changed files with 5 additions and 3 deletions

View File

@ -216,9 +216,6 @@ class HTMLPurifier_HTMLModuleManager
}
}
// merge in custom modules
$modules = array_merge($modules, $this->userModules);
// add proprietary module (this gets special treatment because
// it is completely removed from doctypes, etc.)
if ($config->get('HTML', 'Proprietary')) {
@ -233,6 +230,9 @@ class HTMLPurifier_HTMLModuleManager
$modules[] = 'SafeEmbed';
}
// merge in custom modules
$modules = array_merge($modules, $this->userModules);
foreach ($modules as $module) {
$this->processModule($module);
$this->modules[$module]->setup($config);