mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- improvement removed html comments from {mailto} (Forum Topic 20092)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
06.10.2011
|
06.10.2011
|
||||||
- bugfix switch lexer internals depending on mbstring.func_overload
|
- 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)
|
- 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
|
05.10.2011
|
||||||
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
|
- 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]);
|
$ord[] = ord($string[$x]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$_ret = "<script type=\"text/javascript\" language=\"javascript\">\n";
|
$_ret = "<script type=\"text/javascript\" language=\"javascript\">\n"
|
||||||
$_ret .= "<!--\n";
|
. "{document.write(String.fromCharCode("
|
||||||
$_ret .= "{document.write(String.fromCharCode(";
|
. implode(',', $ord)
|
||||||
$_ret .= implode(',', $ord);
|
. "))"
|
||||||
$_ret .= "))";
|
. "}\n"
|
||||||
$_ret .= "}\n";
|
. "</script>\n";
|
||||||
$_ret .= "//-->\n";
|
|
||||||
$_ret .= "</script>\n";
|
|
||||||
|
|
||||||
return $_ret;
|
return $_ret;
|
||||||
} elseif ($encode == 'hex') {
|
} elseif ($encode == 'hex') {
|
||||||
|
Reference in New Issue
Block a user