- improvement removed html comments from {mailto} (Forum Topic 20092)

This commit is contained in:
rodneyrehm
2011-10-07 08:55:12 +00:00
parent 7169e594c4
commit a3a4bf8f80
2 changed files with 7 additions and 8 deletions

View File

@@ -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()

View File

@@ -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') {