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

Ampersand (&) in folder name becomes & with „inline on a course page“ set for „display folder contents“

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3, 3.5
    • Fix Version/s: 3.4.4, 3.5.1
    • Component/s: Resource
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as Admin.
      2. Create a Course.
      3. Create a Folder (resource) in the Course.
      4. Name it "Water & Bread“ or similar.
      5. Set "Inline on a course page" for "Display folder contents“
      6. Press "Save and return to course“
        • make sure the name of the folder is displayed as "Water & Bread" and NOT as "Water & Bread"
      Show
      Log in as Admin. Create a Course. Create a Folder (resource) in the Course. Name it "Water & Bread“ or similar. Set "Inline on a course page" for "Display folder contents“ Press "Save and return to course“ make sure the name of the folder is displayed as " Water & Bread " and NOT as " Water & Bread "
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-62628-master

      Description

      To reproduce the bug (dates back to at least 2.5.9):

      1. Create a new folder (resource)
      2. Name it „Water & Bread“ or similar
      3. Set „inline on a course page“ for „display folder contents“
      4. Press „save and return to course“
      5. The name will display „Water & Bread“

      I guess the & is somehow replaced twice with &

      A few screen shots to make it clear:

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jul/18

                Time Tracking

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