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

Broken links on confirmation email (or others)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.8, 1.7.6, 1.8.7, 1.9.7
    • Fix Version/s: 1.8.12, 1.9.8
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      All
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Problem:
      At least with extended chars allowed in username the link is incorrectly done.
      e.g. username is 'john smith' the resulting link will be:

      <a href="http://...../john" target="_blank"> http://...../john </a> smith

      or simply:

      httpt://......./john smith

      Solution:
      urlencode($user->username)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    25/Mar/10