Merge branch 'MDL-78120-master' of https://github.com/lucaboesch/moodle

This commit is contained in:
Jake Dallimore 2023-05-16 10:44:30 +08:00
commit cdbacb9adc
No known key found for this signature in database

View File

@ -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;
}