Skip to content
Browse files

Merge branch 'w11_MDL-31815_m21_confirmemail' of git://github.com/sko…

…dak/moodle into MOODLE_21_STABLE
  • Loading branch information...
2 parents 3bc7584 + 906950a commit 833af94c19a092b7ece410872cad267907edfd73 @stronk7 stronk7 committed Mar 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -4968,7 +4968,9 @@ function send_confirmation_email($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);

0 comments on commit 833af94

Please sign in to comment.
Something went wrong with that request. Please try again.