Slightly mkore reobust in the case where https was already being used
for the whole site. bug 3848
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user