Skip to content

Commit

Permalink
MDL-9170 https redirect doesn't happen on login page
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 2, 2007
1 parent e4335c3 commit d66683e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Expand Up @@ -1641,7 +1641,7 @@ function require_login($courseorid=0, $autologinguest=true, $cm=null) {
} else {
$loginguest = '';
}
if (empty($CFG->loginhttps) or $autologinguest) { //do not require https for guest logins
if (empty($CFG->loginhttps) or $loginguest) { //do not require https for guest logins
redirect($CFG->wwwroot .'/login/index.php'. $loginguest);
} else {
$wwwroot = str_replace('http:','https:', $CFG->wwwroot);
Expand Down

0 comments on commit d66683e

Please sign in to comment.