user profiles MDL-20619 Email obfuscation wasnt working in some versions of IE

This commit is contained in:
Andrew Davis
2010-02-16 02:52:53 +00:00
parent cda0cdb819
commit 2fa0e3e21b
+1 -1
View File
@@ -6268,7 +6268,7 @@ function notify($message, $style='notifyproblem', $align='center', $return=false
$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};