From fa801e8c5aeafe8ce562c88ac8fad3d151dd6143 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Tue, 16 Feb 2010 02:54:53 +0000 Subject: [PATCH] user profiles MDL-20619 Email obfuscation wasnt working in some versions of IE --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 24e8a4e8dd8..267e95166ca 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2605,7 +2605,7 @@ function redirect($url, $message='', $delay=-1) { $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};