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

Throw appropriate exception when using require_login()

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.6, 2.9
    • Fix Version/s: None
    • Component/s: Filters, Glossary
    • Labels:
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE

      Description

      Steps to replicate -

      1. Turn on the glossary auto-linking filter.
      2. Create a glossary with an item and enable it's linking.
      3. Edit the section in a course and add the glossary term to the description.
      4. Open a second tab in your browser and log out.
      5. Back in the original tab, click on the glossary term.

      You get the following exception -

      Unsupported redirect detected, script execution terminated
      
      URL:
      http://localhost/im/course/view.php?id=2
      
      Debug info:
      Error code: redirecterrordetected
      
      Stack trace:
      
      * line 2529 of /lib/weblib.php: moodle_exception thrown
      * line 2564 of /lib/moodlelib.php: call to redirect()
      * line 2956 of /lib/moodlelib.php: call to require_login()
      * line 29 of /mod/glossary/showentry_ajax.php: call to require_course_login()
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                markn Mark Nelson
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Adrian Greeve, Mihail Geshoski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: