Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5655

HTML text cleaning too restrictive for trusted output

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.7.3, 2.8, 3.3
    • Fix Version/s: 3.3
    • Component/s: Module: Questionnaire
    • Labels:
      None

      Description

      At some point, Moodle's "format_text" api began using another argument to specify cleaning options. As a result, questionnaire's use of this is very restrictive, and will remove code like embedded iframes from all output. This includes output created by "trusted" roles like teachers. This means that question text and information sections may lose HTML code entered in to them by trusted roles. Go through and add "array('noclean' => true)" as a third argument to "format_text" where applicable.

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            mchurch Mike Churchward
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/May/17