mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-09 15:31:53 +00:00
[1.2.0] Fix improper instantiation of stdclasses for '' and '#PCDATA'
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@513 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
4a724d0230
commit
eb6950d7d0
@ -237,6 +237,7 @@ class HTMLPurifier_HTMLDefinition
|
|||||||
|
|
||||||
// reuses $e_Inline and $e_Block
|
// reuses $e_Inline and $e_Block
|
||||||
foreach ($e_Inline->elements as $name => $bool) {
|
foreach ($e_Inline->elements as $name => $bool) {
|
||||||
|
if ($name == '#PCDATA' || $name == '') continue;
|
||||||
$this->info[$name]->type = 'inline';
|
$this->info[$name]->type = 'inline';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user