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

mod_wiki: Multiple points where title of new page needs to be <=255 chars, but no validation rule present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Peer review in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.8, 3.6.6, 3.7.2, STABLE backlog
    • Fix Version/s: None
    • Component/s: Wiki (2.x)
    • Labels:

      Description

      There are multiple points using a wiki where a new page title is required and no validation for the 255 character limit is present.

      a) When creating a new page in mod_wiki (fake example URL: https://replace-with-url.org/mod/wiki/create.php?action=new&swid=168), the form doesn't ensure that the page title is less than 256 characters. This leads to a database error.
      (QA URL: https://qa.moodledemo.net/mod/wiki/create.php?action=new&swid=2)

      b) When creating a new wiki, the form mod_wiki_mod_form doesn't validate the form field firstpagetitle (Fake example URL: https://replace-with-url.org/course/modedit.php?add=wiki&type=&course=8&section=0&return=0&sr=0)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            poggenpohlda Daniel Poggenpohl
            Peer reviewer:
            Luca Bösch
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: