Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-6594

Create account and non-ASCII symbols (solution included)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.6.2
    • Authentication
    • None
    • Moodle 1.6.2+ from 15.09
      httpd-2.2.2
      php-4.4.2
      mysql-4.1.20
    • MOODLE_16_STABLE

      When peoples create account witn non-ASCII symbols (for example russian symbols) username, confirmation e-mail contain bad link (link only for ASCII symbols and plain text username).
      For example, username: ?????
      Link: http://www.cdp.tsure.ru/moodle/login/confirm.php?data=KnIypNG1kDuK9nJ/?????
      Only http://www.cdp.tsure.ru/moodle/login/confirm.php?data=KnIypNG1kDuK9nJ/ - link and "?????" - plain text. Peoples can't confirm account and it confused theirs...

      Solution:
      in moodlelib.php in function send_confirmation_email use urlencode for $user->username
      $data->link = $CFG->wwwroot .'/login/confirm.php?data='. $user->secret .'/'. urlencode($user->username);
      instead of
      $data->link = $CFG->wwwroot .'/login/confirm.php?data='. $user->secret .'/'. $user->username;

            skodak Petr Skoda
            aav Artem Andreev (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.