MDL-78120 login: handle empty wantsurl on login with alternateloginurl.

This commit is contained in:
Luca Bösch
2023-05-15 10:20:24 +02:00
parent f9edf5c1be
commit 32bc50a135
+1 -1
View File
@@ -314,7 +314,7 @@ if (!empty($CFG->alternateloginurl)) {
$loginurlstr = $loginurl->out(false);
if (strpos($SESSION->wantsurl, $loginurlstr) === 0) {
if (strpos($SESSION->wantsurl ?? '', $loginurlstr) === 0) {
// We do not want to return to alternate url.
$SESSION->wantsurl = null;
}