From f28c6f05b065d925f59485be9a482f0825757e61 Mon Sep 17 00:00:00 2001 From: ethem Date: Wed, 5 Apr 2006 07:54:10 +0000 Subject: [PATCH] IIS https fix. It doesn't recognize empty($_SERVER['HTTPS']). --- enrol/authorize/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 8c4ba717a24e0..9ed2a73213de6 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -29,7 +29,7 @@ function print_entry($course) { $this->check_paid(); // I want to paid on SSL. - if (empty($_SERVER['HTTPS'])) { + if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') { if (empty($CFG->loginhttps)) { error(get_string("httpsrequired", "enrol_authorize")); } else {