mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +00:00
Fix call-time pass-by-reference.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@678 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
aeef746060
commit
8893b87e04
@ -88,14 +88,14 @@ class HTMLPurifier_AttrDef_BackgroundPosition extends HTMLPurifier_AttrDef
|
|||||||
}
|
}
|
||||||
|
|
||||||
// test for length
|
// test for length
|
||||||
$r = $this->length->validate($bit, $config, &$context);
|
$r =& $this->length->validate($bit, $config, &$context);
|
||||||
if ($r !== false) {
|
if ($r !== false) {
|
||||||
$measures[] = $r;
|
$measures[] = $r;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// test for percentage
|
// test for percentage
|
||||||
$r = $this->percentage->validate($bit, $config, &$context);
|
$r =& $this->percentage->validate($bit, $config, &$context);
|
||||||
if ($r !== false) {
|
if ($r !== false) {
|
||||||
$measures[] = $r;
|
$measures[] = $r;
|
||||||
$i++;
|
$i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user