mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-01 20:00:39 +02:00
Fix call-time pass by reference typos.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@326 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -29,7 +29,7 @@ class HTMLPurifier_AttrDef_Border extends HTMLPurifier_AttrDef
|
|||||||
foreach ($bits as $bit) {
|
foreach ($bits as $bit) {
|
||||||
foreach ($this->info as $propname => $validator) {
|
foreach ($this->info as $propname => $validator) {
|
||||||
if (isset($done[$propname])) continue;
|
if (isset($done[$propname])) continue;
|
||||||
$r = $validator->validate($bit, $config, &$context);
|
$r = $validator->validate($bit, $config, $context);
|
||||||
if ($r !== false) {
|
if ($r !== false) {
|
||||||
$ret .= $r . ' ';
|
$ret .= $r . ' ';
|
||||||
$done[$propname] = true;
|
$done[$propname] = true;
|
||||||
|
@@ -67,7 +67,7 @@ class HTMLPurifier_AttrDef_Font extends HTMLPurifier_AttrDef
|
|||||||
foreach ($stage_1 as $validator_name) {
|
foreach ($stage_1 as $validator_name) {
|
||||||
if (isset($caught[$validator_name])) continue;
|
if (isset($caught[$validator_name])) continue;
|
||||||
$r = $this->info[$validator_name]->validate(
|
$r = $this->info[$validator_name]->validate(
|
||||||
$bits[$i], $config, &$context);
|
$bits[$i], $config, $context);
|
||||||
if ($r !== false) {
|
if ($r !== false) {
|
||||||
$final .= $r . ' ';
|
$final .= $r . ' ';
|
||||||
$caught[$validator_name] = true;
|
$caught[$validator_name] = true;
|
||||||
@@ -94,7 +94,7 @@ class HTMLPurifier_AttrDef_Font extends HTMLPurifier_AttrDef
|
|||||||
$line_height = false;
|
$line_height = false;
|
||||||
}
|
}
|
||||||
$r = $this->info['font-size']->validate(
|
$r = $this->info['font-size']->validate(
|
||||||
$font_size, $config, &$context);
|
$font_size, $config, $context);
|
||||||
if ($r !== false) {
|
if ($r !== false) {
|
||||||
$final .= $r;
|
$final .= $r;
|
||||||
// attempt to catch line-height
|
// attempt to catch line-height
|
||||||
@@ -121,7 +121,7 @@ class HTMLPurifier_AttrDef_Font extends HTMLPurifier_AttrDef
|
|||||||
if ($found_slash) {
|
if ($found_slash) {
|
||||||
$i = $j;
|
$i = $j;
|
||||||
$r = $this->info['line-height']->validate(
|
$r = $this->info['line-height']->validate(
|
||||||
$line_height, $config, &$context);
|
$line_height, $config, $context);
|
||||||
if ($r !== false) {
|
if ($r !== false) {
|
||||||
$final .= '/' . $r;
|
$final .= '/' . $r;
|
||||||
}
|
}
|
||||||
@@ -137,7 +137,7 @@ class HTMLPurifier_AttrDef_Font extends HTMLPurifier_AttrDef
|
|||||||
$font_family =
|
$font_family =
|
||||||
implode(' ', array_slice($bits, $i, $size - $i));
|
implode(' ', array_slice($bits, $i, $size - $i));
|
||||||
$r = $this->info['font-family']->validate(
|
$r = $this->info['font-family']->validate(
|
||||||
$font_family, $config, &$context);
|
$font_family, $config, $context);
|
||||||
if ($r !== false) {
|
if ($r !== false) {
|
||||||
$final .= $r . ' ';
|
$final .= $r . ' ';
|
||||||
// processing completed successfully
|
// processing completed successfully
|
||||||
|
Reference in New Issue
Block a user