From 50b3d5320e378b855eaf4eaf43d139b50f7ab86c Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 4 Aug 2006 03:01:45 +0000 Subject: [PATCH] Correct slight hole involving AttrDefs that don't have a return value. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@159 48356398-32a2-884e-a903-53898d9a118a --- library/HTMLPurifier/Strategy/ValidateAttributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/HTMLPurifier/Strategy/ValidateAttributes.php b/library/HTMLPurifier/Strategy/ValidateAttributes.php index 204ba3a7..fa382cc3 100644 --- a/library/HTMLPurifier/Strategy/ValidateAttributes.php +++ b/library/HTMLPurifier/Strategy/ValidateAttributes.php @@ -49,7 +49,7 @@ class HTMLPurifier_Strategy_ValidateAttributes extends HTMLPurifier_Strategy } // put the results into effect - if ($result === false) { + if ($result === false || $result === null) { $changed = true; unset($attr[$attr_key]); } elseif (is_string($result)) {