mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
added obfuscation of protocol-string in {mailto} when using
hex-encoding (thanks to bharat)
This commit is contained in:
2
NEWS
2
NEWS
@@ -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)
|
||||
|
@@ -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 = "mailto:";
|
||||
return '<a href="'.$mailto.$address_encode.'" '.$extra.'>'.$text_encode.'</a>';
|
||||
|
||||
} else {
|
||||
// no encoding
|
||||
|
Reference in New Issue
Block a user