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

PARAM_CLEANHTML documentation typos

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.3.5, 3.4.2, 3.5
    • 3.3.6, 3.4.3
    • Documentation

    Description

      I'm reporting this bug as an easy fix-able one, so a good one for first-time committer that wants to start contributing to Moodle.

      There are typos (recieving and sanitse) in the in-line documentation:

      /**
       * PARAM_CLEANHTML - cleans submitted HTML code. Note that you almost never want
       * to use this. The normal mode of operation is to use PARAM_RAW when recieving
       * the input (required/optional_param or formslib) and then sanitse the HTML
       * using format_text on output. This is for the rare cases when you want to
       * sanitise the HTML on input. This cleaning may also fix xhtml strictness.
       */
      define('PARAM_CLEANHTML', 'cleanhtml');
      

      Link to the code on github: https://github.com/moodle/moodle/blob/master/lib/moodlelib.php#L116

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmuras Tomasz Muras
            Luca Bösch Luca Bösch
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Nobody Nobody
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              17/May/18