From 14fc3ee8e06e005534f2b3f2c69a379e7256b1e0 Mon Sep 17 00:00:00 2001 From: joyqi Date: Wed, 27 Nov 2013 14:08:29 +0800 Subject: [PATCH] fixed #87 --- var/Typecho/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 4c964c80..21ebd1ab 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -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); } }