Bug in {mailto} function plugin

From: Date: Tue, 17 Jan 2006 13:27:25 +0000
Subject: Bug in {mailto} function plugin
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2831@lists.php.net to get a copy of this message
Hi, ({mailto address=$email encode=javascript_charcode}) renders to: (mail@example.com ) I expected: (mail@example.com) Could somebody remove the waste line feed? Thanks, Thomas. Index: libs/plugins/function.mailto.php =================================================================== RCS file: /repository/smarty/libs/plugins/function.mailto.php,v retrieving revision 1.15 diff -u -w -b -r1.15 function.mailto.php --- libs/plugins/function.mailto.php 25 Feb 2005 17:08:28 -0000 1.15 +++ libs/plugins/function.mailto.php 17 Jan 2006 13:07:54 -0000 @@ -122,7 +122,7 @@
         $_ret .= "))";
         $_ret .= "}\n";
         $_ret .= "//-->\n";
-        $_ret .= "</script>\n";
+        $_ret .= "</script>";
         return $_ret;


« previous php.smarty.dev (#2831) next »