From cac429bca40203d64191912f003ff56fa1c6e4d5 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 9 Aug 2005 15:16:23 +0000 Subject: [PATCH] Merging fix for bug 3848 from stable --- lib/moodlelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 6f4cfef35f3..7805584738b 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6027,7 +6027,7 @@ function httpsrequired() { if (!empty($CFG->loginhttps)) { $HTTPSPAGEREQUIRED = true; - $CFG->httpswwwroot = str_replace('http', 'https', $CFG->wwwroot); + $CFG->httpswwwroot = str_replace('http:', 'https:', $CFG->wwwroot); } else { $CFG->httpswwwroot = $CFG->wwwroot; }