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:
parent
b267b0c202
commit
50b3d5320e
@ -49,7 +49,7 @@ class HTMLPurifier_Strategy_ValidateAttributes extends HTMLPurifier_Strategy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// put the results into effect
|
// put the results into effect
|
||||||
if ($result === false) {
|
if ($result === false || $result === null) {
|
||||||
$changed = true;
|
$changed = true;
|
||||||
unset($attr[$attr_key]);
|
unset($attr[$attr_key]);
|
||||||
} elseif (is_string($result)) {
|
} elseif (is_string($result)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user