cvs: smarty / NEWS /libs/plugins function.mailto.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1085733886@cvsserver> |
messju Fri May 28 04:44:46 2004 EDT
Modified files:
/smarty NEWS
/smarty/libs/plugins function.mailto.php
Log:
added obfuscation of protocol-string in {mailto} when using
hex-encoding (thanks to bharat)
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.453&r2=1.454&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.453 smarty/NEWS:1.454
--- smarty/NEWS:1.453 Wed May 26 11:26:40 2004
+++ smarty/NEWS Fri May 28 04:44:45 2004
@@ -1,3 +1,5 @@
+ - added obfuscation of protocol-string in {mailto} when using hex-
+ encoding (bharat, messju)
- enhanced auto-generated filenames for templates_c and cache (messju)
- add 'nonstd' to escape modifier for escaping non-std chars,
such as ms doc quote (Monte)
http://cvs.php.net/diff.php/smarty/libs/plugins/function.mailto.php?r1=1.10&r2=1.11&ty=u
Index: smarty/libs/plugins/function.mailto.php
diff -u smarty/libs/plugins/function.mailto.php:1.10 smarty/libs/plugins/function.mailto.php:1.11
--- smarty/libs/plugins/function.mailto.php:1.10 Wed Apr 7 15:58:54 2004
+++ smarty/libs/plugins/function.mailto.php Fri May 28 04:44:46 2004
@@ -127,7 +127,8 @@
$text_encode .= '&#x' . bin2hex($text[$x]).';';
}
- return '<a href="mailto:'.$address_encode.'" '.$extra.'>'.$text_encode.'</a>';
+ $mailto = "mailto:";
+ return '<a href="'.$mailto.$address_encode.'" '.$extra.'>'.$text_encode.'</a>';
} else {
// no encoding
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php