mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
Merge branch 'MDL-78120-master' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
cdbacb9adc
@ -314,7 +314,7 @@ if (!empty($CFG->alternateloginurl)) {
|
||||
|
||||
$loginurlstr = $loginurl->out(false);
|
||||
|
||||
if (strpos($SESSION->wantsurl, $loginurlstr) === 0) {
|
||||
if ($SESSION->wantsurl != '' && strpos($SESSION->wantsurl, $loginurlstr) === 0) {
|
||||
// We do not want to return to alternate url.
|
||||
$SESSION->wantsurl = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user