diff --git a/login/index.php b/login/index.php index 3ea0675..38f0477 100644 --- a/login/index.php +++ b/login/index.php @@ -298,7 +298,7 @@ if (!empty($CFG->alternateloginurl)) { $loginurl .= 'errorcode='.$errorcode; } - redirect($loginurl); + redirect(new moodle_url($loginurl)); } // make sure we really are on the https page when https login required