mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- improvement removed html comments from {mailto} (Forum Topic 20092)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
06.10.2011
|
||||
- bugfix switch lexer internals depending on mbstring.func_overload
|
||||
- bugfix start_year and end_year of {html_select_date} did not use current year as offset base (Issue #53)
|
||||
- improvement removed html comments from {mailto} (Forum Topic 20092)
|
||||
|
||||
05.10.2011
|
||||
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
|
||||
|
@@ -117,14 +117,12 @@ function smarty_function_mailto($params, $template)
|
||||
$ord[] = ord($string[$x]);
|
||||
}
|
||||
|
||||
$_ret = "<script type=\"text/javascript\" language=\"javascript\">\n";
|
||||
$_ret .= "<!--\n";
|
||||
$_ret .= "{document.write(String.fromCharCode(";
|
||||
$_ret .= implode(',', $ord);
|
||||
$_ret .= "))";
|
||||
$_ret .= "}\n";
|
||||
$_ret .= "//-->\n";
|
||||
$_ret .= "</script>\n";
|
||||
$_ret = "<script type=\"text/javascript\" language=\"javascript\">\n"
|
||||
. "{document.write(String.fromCharCode("
|
||||
. implode(',', $ord)
|
||||
. "))"
|
||||
. "}\n"
|
||||
. "</script>\n";
|
||||
|
||||
return $_ret;
|
||||
} elseif ($encode == 'hex') {
|
||||
|
Reference in New Issue
Block a user