fix syntax error from previous commit

This commit is contained in:
mohrt
2003-02-17 21:13:32 +00:00
parent 54a0c0e676
commit 57fc8d0372
2 changed files with 4 additions and 4 deletions

View File

@@ -26,14 +26,14 @@ function smarty_modifier_escape($string, $esc_type = 'html')
case 'hex':
// escape every character into hex
return = '';
$return = '';
for ($x=0; $x < strlen($string); $x++) {
$return .= '%' . bin2hex($string[$x]);
}
return $return;
case 'hexentity':
return = '';
$return = '';
for ($x=0; $x < strlen($string); $x++) {
$return .= '&#x' . bin2hex($string[$x]) . ';';
}

View File

@@ -26,14 +26,14 @@ function smarty_modifier_escape($string, $esc_type = 'html')
case 'hex':
// escape every character into hex
return = '';
$return = '';
for ($x=0; $x < strlen($string); $x++) {
$return .= '%' . bin2hex($string[$x]);
}
return $return;
case 'hexentity':
return = '';
$return = '';
for ($x=0; $x < strlen($string); $x++) {
$return .= '&#x' . bin2hex($string[$x]) . ';';
}