-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.2, 3.2.4, 3.3.1
-
MOODLE_30_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
wip-
MDL-53492-master -
-
3.4 Sprint 3
Original title: Moodle Registration Link Redirects to http in the URL
When logged into Moodle as an administrator, under the Administration menu, clicking "Registration" will attempt to redirect to: ".../registration/register.php?huburl=http%3A%2F%2Fhub.moodle.org...". Unfortunately, in our environment we block http requests and don't yet automatically redirect http requests to https so this request gets blocked by our application firewall.
This path looks like it is coming from the "HUB_MOODLEORGHUBURL" variable in moodlelib.php (line 493 on my version) where it is statically set as "http://hub.moodle.org". Can this be changed to https or even to just hub.moodle.org so that it is not forced to be one or the other?
I noticed there was another variable being set specifically to http right above as well. It is the "HUB_HUBDIRECTORYURL" variable.
edited: as a solution we register sites with https://moodle.net , this is the actual registration hub and http://hub.moodle.org is an alias that makes it compatible with older versions of Moodle.