Diff for phpPlatonLib/Platon/Platon.php between version 1.37 and 1.38
| version 1.37, 2007/02/01 18:11:23 |
version 1.38, 2007/04/29 13:19:15 |
|
|
| * @access public |
* @access public |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.36 2006-07-08 19:57:04 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Platon/Platon.php,v 1.37 2007-02-01 18:11:23 nepto Exp $ */ |
| |
|
| class Platon |
class Platon |
| { |
{ |
|
|
| case 'url': |
case 'url': |
| // escape every character into hex |
// escape every character into hex |
| for ($x = 0; $x < strlen($email); $x++) { |
for ($x = 0; $x < strlen($email); $x++) { |
| $ret .= '%' . bin2hex($email[$x]); |
if ($email[$x] == '@') { |
| |
$ret .= '@'; // Opera browser hack |
| |
} else { |
| |
$ret .= '%' . bin2hex($email[$x]); |
| |
} |
| } |
} |
| if ($mode == 'url') { |
if ($mode == 'url') { |
| break; |
break; |
Platon Group <platon@platon.org> http://platon.org/
|
|