cvs: smarty /libs/plugins function.mailto.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1076184946@cvsserver> |
messju Sat Feb 7 15:15:46 2004 EDT
Modified files:
/smarty/libs/plugins function.mailto.php
Log:
removed notice of undefined variable. (thanks shuther!)
http://cvs.php.net/diff.php/smarty/libs/plugins/function.mailto.php?r1=1.7&r2=1.8&ty=u
Index: smarty/libs/plugins/function.mailto.php
diff -u smarty/libs/plugins/function.mailto.php:1.7 smarty/libs/plugins/function.mailto.php:1.8
--- smarty/libs/plugins/function.mailto.php:1.7 Thu Dec 11 04:38:18 2003
+++ smarty/libs/plugins/function.mailto.php Sat Feb 7 15:15:45 2004
@@ -100,6 +100,7 @@
if ($encode == 'javascript' ) {
$string = 'document.write(\'<a href="mailto:'.$address.'" '.$extra.'>'.$text.'</a>\');';
+ $js_encode = '';
for ($x=0; $x < strlen($string); $x++) {
$js_encode .= '%' . bin2hex($string[$x]);
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php