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

problem with login/index.php file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3, 1.7
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      Linux
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE

      Description

      On line 178, the / appended to the $wwwroot variable was omitted. This causes problems when logging in by directing to an incorrectly displayed URL. The result is a not logged in status when the user is actually logged in.

      I added the / and it fixed the problem.

      } else {

      // no wantsurl stored or external - go to homepage

      $urltogo = $CFG->wwwroot; /// HERE'S THE PROBLEM SHOULD BE '$urltogo = $CFG->wwwroot./;'

      unset($SESSION->wantsurl);

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              imported Imported
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Oct/06