From 12938e894def41616aff785ddde3727039e872c1 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 4 Nov 2014 16:50:25 +0800 Subject: [PATCH] MDL-48050 Libraries - fake HTTPS detection needs the correct port --- lib/setuplib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/setuplib.php b/lib/setuplib.php index 9a59592ddeb..399308bd867 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -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