-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
1.8.8, 1.9.4
-
None
-
MOODLE_18_STABLE, MOODLE_19_STABLE
-
Easy
In line 168 of login/index.php we have:
} else if (isset($SESSION->wantsurl) and (strpos($SESSION->wantsurl, $CFG->wwwroot) === 0))
but wantsurl could be also an https link (https://my.site/login/change_password.php or https://my.site/user/editadvanced.php), but in this case homepage is showed. Here my hack:
} else if (isset($SESSION->wantsurl) and ((strpos($SESSION->wantsurl, $CFG->wwwroot) === 0) || (strpos($SESSION->wantsurl, $CFG->httpswwwroot) === 0))) { $urltogo = $SESSION->wantsurl; /// Because it's an address in this site unset($SESSION->wantsurl); }
else
{ // no wantsurl stored or external - go to homepage $urltogo = $CFG->wwwroot.'/'; unset($SESSION->wantsurl); }- will be (partly) resolved by
-
MDL-26322 Incorrect workflow in handling of forgotten passwords
-
- Closed
-