From 9daa27426f54da79ba4c42e7dc768e4e333eb00d Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 2 May 2016 10:52:02 +0800 Subject: [PATCH] MDL-53901 login: Redirect to https if loginhttps is enabled This just prevents a double redirect. --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/index.php b/login/index.php index b277f891e81..45845cbaf49 100644 --- a/login/index.php +++ b/login/index.php @@ -353,7 +353,7 @@ if (!empty($SESSION->loginerrormsg)) { if ($errormsg) { $SESSION->loginerrormsg = $errormsg; } - redirect(new moodle_url('/login/index.php')); + redirect(new moodle_url($CFG->httpswwwroot . '/login/index.php')); } $PAGE->set_title("$site->fullname: $loginsite");