mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix syntax error from previous commit
This commit is contained in:
@@ -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]) . ';';
|
||||
}
|
||||
|
@@ -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]) . ';';
|
||||
}
|
||||
|
Reference in New Issue
Block a user