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:
parent
eb6950d7d0
commit
9668ac1e38
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user