mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-31815 encode dots in confirm url which helps email clients with url highlighting
This commit is contained in:
parent
23778a4dfa
commit
3d951178fc
@ -5441,7 +5441,9 @@ function reset_password_and_mail($user) {
|
||||
|
||||
$subject = get_string('emailconfirmationsubject', '', format_string($site->fullname));
|
||||
|
||||
$data->link = $CFG->wwwroot .'/login/confirm.php?data='. $user->secret .'/'. urlencode($user->username);
|
||||
$username = urlencode($user->username);
|
||||
$username = str_replace('.', '%2E', $username); // prevent problems with trailing dots
|
||||
$data->link = $CFG->wwwroot .'/login/confirm.php?data='. $user->secret .'/'. $username;
|
||||
$message = get_string('emailconfirmation', '', $data);
|
||||
$messagehtml = text_to_html(get_string('emailconfirmation', '', $data), false, false, true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user