diff options
| author | rodneyrehm <rodneyrehm@localhost> | 2011-10-07 08:55:12 +0000 |
|---|---|---|
| committer | rodneyrehm <rodneyrehm@localhost> | 2011-10-07 08:55:12 +0000 |
| commit | a3a4bf8f8036a324fc7ae2cb3b587d8fd893958c (patch) | |
| tree | 35a520e574e633b28edab5771549c6c92da0619d | |
| parent | 7169e594c4172db0e2d94faf122691a38657b730 (diff) | |
| download | smarty-a3a4bf8f8036a324fc7ae2cb3b587d8fd893958c.tar.gz smarty-a3a4bf8f8036a324fc7ae2cb3b587d8fd893958c.tar.bz2 smarty-a3a4bf8f8036a324fc7ae2cb3b587d8fd893958c.zip | |
- improvement removed html comments from {mailto} (Forum Topic 20092)
| -rw-r--r-- | change_log.txt | 1 | ||||
| -rw-r--r-- | libs/plugins/function.mailto.php | 14 |
2 files changed, 7 insertions, 8 deletions
diff --git a/change_log.txt b/change_log.txt index 12f5aa2a..fccd5e7b 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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() diff --git a/libs/plugins/function.mailto.php b/libs/plugins/function.mailto.php index 0f56195c..c8e18fc6 100644 --- a/libs/plugins/function.mailto.php +++ b/libs/plugins/function.mailto.php @@ -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') { |
