mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-48050 Libraries - fake HTTPS detection needs the correct port
This commit is contained in:
parent
ac4ed127de
commit
12938e894d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user