0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-20 03:05:18 +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:
Edward Z. Yang 2006-11-08 00:07:42 +00:00
parent 4a724d0230
commit eb6950d7d0

View File

@ -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';
} }