obfuscation of the email addresses

This commit is contained in:
skodak
2006-08-09 20:39:24 +00:00
parent c071606525
commit 105a8f399f
+2 -1
View File
@@ -218,7 +218,8 @@ if (count($errors)) {
// check $page for appropriate page to display
if ($page=='emailconfirm') {
// Confirm (internal method) email sent
$txt->emailpasswordconfirmsent = get_string( 'emailpasswordconfirmsent','',$user->email );
$protectedemail = preg_replace('/([^@]*)@(.*)/', '???????@$2', $user->email); // obfuscate the email address to protect privacy
$txt->emailpasswordconfirmsent = get_string( 'emailpasswordconfirmsent','',$protectedemail );
notice( $txt->emailpasswordconfirmsent,$CFG->wwwroot.'/index.php');
}