MDL-48050 Libraries - fake HTTPS detection needs the correct port

This commit is contained in:
Damyon Wiese 2014-11-04 16:50:25 +08:00
parent ac4ed127de
commit 12938e894d

View File

@ -817,6 +817,7 @@ function initialise_fullme() {
}
$rurl['scheme'] = 'https'; // make moodle believe it runs on https, squid or something else it doing it
$_SERVER['HTTPS'] = 'on'; // Override $_SERVER to help external libraries with their HTTPS detection.
$_SERVER['SERVER_PORT'] = 443; // Assume default ssl port for the proxy.
}
// hopefully this will stop all those "clever" admins trying to set up moodle