0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-03 13:21:51 +00:00

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
This commit is contained in:
Edward Z. Yang 2006-08-04 03:01:45 +00:00
parent b267b0c202
commit 50b3d5320e

View File

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