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

https is replaced with httpss when wwwroot already is https

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.2
    • 1.8.3, 1.9
    • General
    • None
    • Debian 4 Etch, Apache2, MySQL5
    • Any
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      in several places the following code can be found in 1.8.2+

      if (!empty($CFG->loginhttps))

      { $wwwroot = str_replace('http', 'https', $wwwroot); }

      after this $wwwroot will contain "httpss" when $wwwroot was equal to "https" before.

      it should read:

      if (!empty($CFG->loginhttps))

      { $wwwroot = str_replace('http:', 'https:', $wwwroot); }

      i found this code in the following files:

      mod/choice/view.php
      mod/forum/markposts.php
      mod/forum/post.php
      mod/forum/settracking.php
      mod/forum/subscribe.php

      Attachments

        Activity

          People

            skodak Petr Skoda
            marxist Tobias Marx
            Nobody Nobody
            Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07