Permalink
Browse files

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

…dak/moodle into MOODLE_22_STABLE
  • Loading branch information...
stronk7 committed Mar 12, 2012
2 parents 7fabd5a + caec040 commit 3e6e265d1a5ad97db643497582e104e7395dcaa3
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/moodlelib.php
View
@@ -5365,7 +5365,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 3e6e265

Please sign in to comment.