Moodle
  1. Moodle
  2. MDL-26534

Allow iframes in course category descriptions

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.10
    • Fix Version/s: 1.9.12
    • Component/s: Course
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      16281

      Description

      If an iframe is included as part of a course category description, it is not displayed on the course categories page. This is because the description is cleaned, and the iframe tag stripped out.

      This is contrary to the behaviour of course descriptions, as they allow the iframe to remain in place. Further confusion to the course administrator is added by the fact that when he goes back to edit the course description again, the iframe is still there.

      Either the course description editor should be modified to disallow iframes to be included, or they should be correctly displayed on the relevant page, e.g. course/category.php?id=2

      To test (Moodle 1.9):

      • edit a course category
      • add an iframe to the description
      • save the description
      • view the Course Categories page course/index.php
      • select the course you just edited

      Expected: the iframe and contents appear in the description
      Actual: the iframe is stripped out and doesn't appear

        Issue Links

          Activity

          Hide
          David Mudrak added a comment -

          The patch works well for 1.9.11+. However, Moodle 2.0 does not seem to have this fixed. I have created MDL-26639 for that.

          Show
          David Mudrak added a comment - The patch works well for 1.9.11+. However, Moodle 2.0 does not seem to have this fixed. I have created MDL-26639 for that.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: