diff --git a/libs/plugins/function.mailto.php b/libs/plugins/function.mailto.php index 92bb9d3b..94d797d7 100644 --- a/libs/plugins/function.mailto.php +++ b/libs/plugins/function.mailto.php @@ -114,6 +114,7 @@ function smarty_function_mailto($params, &$smarty) $smarty->trigger_error("mailto: hex encoding does not work with extra attributes. Try javascript."); return; } + $address_encode = ''; for ($x=0; $x < strlen($address); $x++) { if(preg_match('!\w!',$address[$x])) { $address_encode .= '%' . bin2hex($address[$x]); @@ -121,6 +122,7 @@ function smarty_function_mailto($params, &$smarty) $address_encode .= $address[$x]; } } + $text_encode = ''; for ($x=0; $x < strlen($text); $x++) { $text_encode .= '&#x' . bin2hex($text[$x]).';'; }