Permalink
Browse files

Slightly mkore reobust in the case where https was already being used

for the whole site.      bug 3848
  • Loading branch information...
moodler
moodler committed Aug 9, 2005
1 parent 4eb27d4 commit 8bc776ba4f7f016f4b32e1ee498eba39762f623a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -5805,7 +5805,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;
}

0 comments on commit 8bc776b

Please sign in to comment.