fix E_NOTICE messages

This commit is contained in:
mohrt
2003-02-17 14:58:36 +00:00
parent b04bbd47c6
commit c99f9fdbb2
7 changed files with 14 additions and 8 deletions
+2
View File
@@ -26,12 +26,14 @@ function smarty_modifier_escape($string, $esc_type = 'html')
case 'hex':
// escape every character into hex
return = '';
for ($x=0; $x < strlen($string); $x++) {
$return .= '%' . bin2hex($string[$x]);
}
return $return;
case 'hexentity':
return = '';
for ($x=0; $x < strlen($string); $x++) {
$return .= '&#x' . bin2hex($string[$x]) . ';';
}