mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-28 19:01:37 +01:00
added obfuscation of protocol-string in {mailto} when using
hex-encoding (thanks to bharat)
This commit is contained in:
@@ -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