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)) {