mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
fix mb check
This commit is contained in:
@@ -68,7 +68,7 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = SMARTY_
|
|||||||
|
|
||||||
case 'mail':
|
case 'mail':
|
||||||
// safe way to display e-mail address on a web page
|
// safe way to display e-mail address on a web page
|
||||||
if ($smarty->has_mb) {
|
if (function_exists('mb_str_replace')) {
|
||||||
return mb_str_replace(array('@', '.'), array(' [AT] ', ' [DOT] '), $string);
|
return mb_str_replace(array('@', '.'), array(' [AT] ', ' [DOT] '), $string);
|
||||||
} else {
|
} else {
|
||||||
return str_replace(array('@', '.'), array(' [AT] ', ' [DOT] '), $string);
|
return str_replace(array('@', '.'), array(' [AT] ', ' [DOT] '), $string);
|
||||||
|
Reference in New Issue
Block a user