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

PARAM_CLEANHTML documentation typos

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4.2, 3.5
    • Fix Version/s: 3.3.6, 3.4.3
    • Component/s: Documentation
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18