0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-09 15:31:53 +00:00

[1.2.0] Add protection against stdclasses into HTMLDefinition.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@514 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2006-11-08 00:11:10 +00:00
parent eb6950d7d0
commit 9668ac1e38

View File

@ -397,6 +397,13 @@ class HTMLPurifier_HTMLDefinition
$this->info_attr_transform_post[] = new HTMLPurifier_AttrTransform_Lang(); $this->info_attr_transform_post[] = new HTMLPurifier_AttrTransform_Lang();
// protect against stdclasses floating around
foreach ($this->info as $key => $obj) {
if (is_a($obj, 'stdclass')) {
unset($this->info[$key]);
}
}
} }
function setAttrForTableElements($attr, $def) { function setAttrForTableElements($attr, $def) {