added obfuscation of protocol-string in {mailto} when using

hex-encoding (thanks to bharat)
This commit is contained in:
messju
2004-05-28 08:44:46 +00:00
parent ce11d80ea5
commit 1c5ae377fd
2 changed files with 4 additions and 1 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- added obfuscation of protocol-string in {mailto} when using hex-
encoding (bharat, messju)
- enhanced auto-generated filenames for templates_c and cache (messju)
- add 'nonstd' to escape modifier for escaping non-std chars,
such as ms doc quote (Monte)

View File

@@ -127,7 +127,8 @@ function smarty_function_mailto($params, &$smarty)
$text_encode .= '&#x' . bin2hex($text[$x]).';';
}
return '<a href="mailto:'.$address_encode.'" '.$extra.'>'.$text_encode.'</a>';
$mailto = "&#109;&#97;&#105;&#108;&#116;&#111;&#58;";
return '<a href="'.$mailto.$address_encode.'" '.$extra.'>'.$text_encode.'</a>';
} else {
// no encoding