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

quiz attempt.php (& review.php?) should ensure $page is not out-of-range

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.1
    • 2.2.5, 2.3.2
    • Quiz
    • MOODLE_23_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • Hide

      1. Find or create a multi-page quiz, using a behaviour like immediate feedback that has 'Check' buttons.

      2. Attempt it as a student. During the attempt, edit the URL to change &page= to something crazy like &page=-100 or &page=1234.

      3. Verify that the first or last page is shown instead.

      4. Verify that the buttons like Check and Next work as expected.

      Show
      1. Find or create a multi-page quiz, using a behaviour like immediate feedback that has 'Check' buttons. 2. Attempt it as a student. During the attempt, edit the URL to change &page= to something crazy like &page=-100 or &page=1234. 3. Verify that the first or last page is shown instead. 4. Verify that the buttons like Check and Next work as expected.

    Description

      At the moment, if it is, you get a "no questions found" error. It would be better if it just set page to the first or last page in the quiz.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Dan Poltawski Dan Poltawski
              David Monllaó David Monllaó
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Sep/12