mirror of
https://github.com/typecho/typecho.git
synced 2025-03-23 19:40:22 +01:00
fixed #87
This commit is contained in:
parent
13926365e5
commit
14fc3ee8e0
@ -592,7 +592,7 @@ EOF;
|
||||
$attribute = $node->attributes->item($i);
|
||||
$name = strtolower($attribute->name);
|
||||
|
||||
if (!in_array($name, $allowableAttributes[$tagName])) {
|
||||
if (empty($allowableAttributes[$tagName]) || !in_array($name, $allowableAttributes[$tagName])) {
|
||||
$node->removeAttributeNode($attribute);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user