mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-28 19:01:37 +01:00
- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452)
This commit is contained in:
@@ -130,7 +130,7 @@ function smarty_function_mailto($params, $template)
|
||||
}
|
||||
$address_encode = '';
|
||||
for ($x = 0, $_length = strlen($address); $x < $_length; $x++) {
|
||||
if (preg_match('!\w!u', $address[$x])) {
|
||||
if (preg_match('!\w!' . Smarty::$_UTF8_MODIFIER, $address[$x])) {
|
||||
$address_encode .= '%' . bin2hex($address[$x]);
|
||||
} else {
|
||||
$address_encode .= $address[$x];
|
||||
|
||||
Reference in New Issue
Block a user