mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 16:31:53 +00: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:
parent
d9e60350d3
commit
9977350143
2
NEWS
2
NEWS
@ -46,6 +46,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
- Detect if HTML support is disabled for DOM by checking for loadHTML() method.
|
- Detect if HTML support is disabled for DOM by checking for loadHTML() method.
|
||||||
- Fix bug where dots and double-dots in absolute URLs without hostname were
|
- Fix bug where dots and double-dots in absolute URLs without hostname were
|
||||||
not collapsed by URIFilter_MakeAbsolute.
|
not collapsed by URIFilter_MakeAbsolute.
|
||||||
|
- Fix bug with anonymous modules operating on SafeEmbed or SafeObject elements
|
||||||
|
by reordering their addition.
|
||||||
. Strategy_MakeWellFormed now operates in-place, saving memory and allowing
|
. Strategy_MakeWellFormed now operates in-place, saving memory and allowing
|
||||||
for more interesting filter-backtracking
|
for more interesting filter-backtracking
|
||||||
. New HTMLPurifier_Injector->rewind() functionality, allows injectors to rewind
|
. New HTMLPurifier_Injector->rewind() functionality, allows injectors to rewind
|
||||||
|
@ -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
|
// add proprietary module (this gets special treatment because
|
||||||
// it is completely removed from doctypes, etc.)
|
// it is completely removed from doctypes, etc.)
|
||||||
if ($config->get('HTML', 'Proprietary')) {
|
if ($config->get('HTML', 'Proprietary')) {
|
||||||
@ -233,6 +230,9 @@ class HTMLPurifier_HTMLModuleManager
|
|||||||
$modules[] = 'SafeEmbed';
|
$modules[] = 'SafeEmbed';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// merge in custom modules
|
||||||
|
$modules = array_merge($modules, $this->userModules);
|
||||||
|
|
||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
$this->processModule($module);
|
$this->processModule($module);
|
||||||
$this->modules[$module]->setup($config);
|
$this->modules[$module]->setup($config);
|
||||||
|
Loading…
Reference in New Issue
Block a user