Permalink
Browse files

user profiles MDL-20619 Email obfuscation wasnt working in some versi…

…ons of IE
  • Loading branch information...
1 parent cda0cdb commit 2fa0e3e21b74bc0f3cb8e2e3faf96b8bec8472e6 Andrew Davis committed Feb 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -6268,7 +6268,7 @@ function obfuscate_email($email) {
$length = strlen($email);
$obfuscated = '';
while ($i < $length) {
- if (rand(0,2)) {
+ if (rand(0,2) && $email{$i}!='@') { //MDL-20619 some browsers have problems unobfuscating @
$obfuscated.='%'.dechex(ord($email{$i}));
} else {
$obfuscated.=$email{$i};

0 comments on commit 2fa0e3e

Please sign in to comment.