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

block_recentlyaccessedcourses displays HTML character codes in course title

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6, 3.7
    • 3.6.3
    • Blocks
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_36_STABLE
    • master
    • Hide
      1. Login as admin.
      2. Create/rename a course with an ampersand symbol (&) in the title.
      3. Enrol a user in that course.
      4. Login as this user and view the course.
      5. On the dashboard, add the recentlyaccessedcourses block (if not added before).
      6. View the content in the recentlyaccessedcourses block.
      7. CHECK that the & is displayed instead of the &amp  character.
      Show
      Login as admin. Create/rename a course with an ampersand symbol (&) in the title. Enrol a user in that course. Login as this user and view the course. On the dashboard, add the recentlyaccessedcourses block (if not added before). View the content in the recentlyaccessedcourses block. CHECK that the & is displayed instead of the &amp  character.

    Description

      Very similar to https://tracker.moodle.org/browse/MDL-59887

      The course titles display eg. &amp instead of just the & symbol, as shown in the screenshot attached.

      To reproduce this issue:
      1. Have a course with an ampersand symbol in the title.
      2. Pick a user and enrol and view the course, so that it will show up in the recentlyaccessedcourses block.
      3. On the dashboard view the recentlyaccessedcourses block, and see that the HTML is displaying the character codes there.

      Implemented a similar one line fix to MDL-59887 :

      master: https://github.com/moodle/moodle/compare/0e1e1e5586a...kristian-94:master

      MOODLE_36_STABLE: https://github.com/moodle/moodle/compare/cc8d7ee698857cd492e470cf23f978d4946b078c...kristian-94:MOODLE_36_STABLE

      Attachments

        Issue Links

          Activity

            People

              kristianr Kristian Ringer
              kristianr Kristian Ringer
              Mihail Geshoski Mihail Geshoski
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Anna Carissa Sadia Anna Carissa Sadia
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Mar/19

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m