cvs: smarty /libs/plugins function.mailto.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1077491910@cvsserver> |
messju Sun Feb 22 18:18:30 2004 EDT
Modified files:
/smarty/libs/plugins function.mailto.php
Log:
removed 2 notices of undefined vars (thanks Cit)
http://cvs.php.net/diff.php/smarty/libs/plugins/function.mailto.php?r1=1.8&r2=1.9&ty=u
Index: smarty/libs/plugins/function.mailto.php
diff -u smarty/libs/plugins/function.mailto.php:1.8 smarty/libs/plugins/function.mailto.php:1.9
--- smarty/libs/plugins/function.mailto.php:1.8 Sat Feb 7 15:15:45 2004
+++ smarty/libs/plugins/function.mailto.php Sun Feb 22 18:18:30 2004
@@ -114,6 +114,7 @@
$smarty->trigger_error("mailto: hex encoding does not work with extra attributes. Try javascript.");
return;
}
+ $address_encode = '';
for ($x=0; $x < strlen($address); $x++) {
if(preg_match('!\w!',$address[$x])) {
$address_encode .= '%' . bin2hex($address[$x]);
@@ -121,6 +122,7 @@
$address_encode .= $address[$x];
}
}
+ $text_encode = '';
for ($x=0; $x < strlen($text); $x++) {
$text_encode .= '&#x' . bin2hex($text[$x]).';';
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php