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

https is replaced with httpss when wwwroot already is https

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: General
    • Labels:
      None
    • Environment:
      Debian 4 Etch, Apache2, MySQL5
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      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

            Assignee:
            skodak Petr Skoda
            Reporter:
            marxist Tobias Marx
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07