mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-9481 Prevent redirection to alt login url after login (when url on the same server)
This commit is contained in:
parent
4acffa4997
commit
b3df98189d
1 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,11 @@ httpsrequired();
|
|||
if (!empty($CFG->alternateloginurl)) {
|
||||
$loginurl = $CFG->alternateloginurl;
|
||||
|
||||
if (strpos($SESSION->wantsurl, $loginurl) === 0) {
|
||||
//we do not want to return to alternate url
|
||||
$SESSION->wantsurl = NULL;
|
||||
}
|
||||
|
||||
if ($errorcode) {
|
||||
if (strpos($loginurl, '?') === false) {
|
||||
$loginurl .= '?';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue